feat(user-profile): display user information and password change form in dialog

This commit is contained in:
adityachandelgit
2025-04-28 09:32:11 -06:00
committed by Aditya Chandel
parent fc0d9fff1f
commit 71bc927d54
7 changed files with 335 additions and 86 deletions
@@ -18,6 +18,7 @@ import {LiveNotificationBoxComponent} from '../../../core/component/live-notific
import {BookUploaderComponent} from '../../../utilities/component/book-uploader/book-uploader.component';
import {AuthService} from '../../../core/service/auth.service';
import {UserService} from '../../../user.service';
import {UserProfileDialogComponent} from '../../../user-profile-dialog/user-profile-dialog.component';
@Component({
selector: 'app-topbar',
@@ -118,8 +119,16 @@ export class AppTopBarComponent implements OnDestroy {
this.router.navigate(['/settings']);
}
navigateToProfile() {
this.router.navigate(['/profile']);
openUserProfileDialog() {
this.ref = this.dialogService.open(UserProfileDialogComponent, {
header: 'User Profile Information',
modal: true,
closable: true,
style: {
position: 'absolute',
top: '10%',
}
});
}
logout() {