feat: add profile screen
This commit is contained in:
committed by
Aditya Chandel
parent
ad6f848752
commit
afb4c86c83
@@ -39,6 +39,11 @@
|
||||
pTooltip="Settings" tooltipPosition="top"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<button class="topbar-item" (click)="navigateToProfile()" pTooltip="Profile" tooltipPosition="top">
|
||||
<i class="pi pi-user text-surface-700 dark:text-surface-100"></i>
|
||||
</button>
|
||||
</li>
|
||||
</div>
|
||||
|
||||
<p-divider layout="vertical"/>
|
||||
|
||||
@@ -118,6 +118,10 @@ export class AppTopBarComponent implements OnDestroy {
|
||||
this.router.navigate(['/settings']);
|
||||
}
|
||||
|
||||
navigateToProfile() {
|
||||
this.router.navigate(['/profile']);
|
||||
}
|
||||
|
||||
logout() {
|
||||
this.authService.logout();
|
||||
window.location.href = '/login';
|
||||
|
||||
Reference in New Issue
Block a user