Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
feat(front-end): Add profile settings in DashboardLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Jan 27, 2021
1 parent 0a15300 commit 4c311fb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<mat-nav-list>
<div *ngFor="let menuOption of menuOptions">
<a
class="sidenav-link"
*ngIf="!menuOption.isMenu"
mat-list-item
[routerLink]="menuOption.url"
Expand All @@ -42,6 +43,7 @@
</mat-expansion-panel-header>
<mat-nav-list dense>
<a
class="sidenav-link"
*ngFor="let menuItem of menuOption?.subMenu"
mat-list-item
[routerLink]="menuItem.url"
Expand All @@ -55,14 +57,15 @@
</mat-nav-list>
<mat-nav-list>
<a
class="sidenav-link"
mat-list-item
routerLink="/user/edit"
routerLinkActive="dashboard-link-active"
>
<mat-icon>settings</mat-icon>
<span class="nav-caption">Datos de acceso</span>
</a>
<a mat-list-item (click)="logout()">
<a class="sidenav-link" mat-list-item (click)="logout()">
<mat-icon>power_settings_new</mat-icon>
<span class="nav-caption">Cerrar sesión</span>
</a>
Expand All @@ -81,12 +84,26 @@
</button>
<span>Ecolplag</span>
<div class="spacer"></div>
<button mat-icon-button>
<button mat-icon-button [matTooltip]="'Notificaciones'">
<mat-icon>notifications</mat-icon>
</button>
<button mat-icon-button>
<button mat-icon-button [matMenuTriggerFor]="accountMenu" [matTooltip]="'Opciones de cuenta'">
<mat-icon>account_circle</mat-icon>
</button>
<mat-menu #accountMenu="matMenu">
<a mat-menu-item routerLink="/user/profile">
<mat-icon>face</mat-icon>
<span>Mi perfil</span>
</a>
<a mat-menu-item routerLink="/user/edit">
<mat-icon>settings</mat-icon>
<span>Datos de acceso</span>
</a>
<button mat-menu-item (click)="logout()">
<mat-icon>power_settings_new</mat-icon>
<span class="nav-caption">Cerrar sesión</span>
</button>
</mat-menu>
</mat-toolbar>
<div style="margin-top: 30px">
<router-outlet></router-outlet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mat-nav-list * {
color: white !important;
}

a:hover {
a.sidenav-link:hover {
background: #162250 !important;
color: #f7f7f2 !important;
}
Expand Down

0 comments on commit 4c311fb

Please sign in to comment.