Skip to content

Commit

Permalink
chore: close sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri committed Oct 17, 2024
1 parent 96e2b69 commit 479deb1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<a *ngFor="let module of moduleOptions"
class="nav-item"
[routerLink]="module.routerLink"
(click)="close()"
[mmAuth]="module.hasPermissions">
<mat-icon [fontIcon]="module.icon"></mat-icon>
<span>{{ module.translationKey | translate }}</span>
Expand Down Expand Up @@ -54,15 +55,15 @@
*ngIf="option.hasPermissions"
[routerLink]="option.routerLink"
[mmAuth]="option.hasPermissions"
(click)="option.click && option.click()">
(click)="option.click && option.click(); close()">
<mat-icon [fontIcon]="option.icon"></mat-icon>
<span>{{ option.translationKey | translate }}</span>
</a>

<a class="nav-item"
*ngIf="!option.hasPermissions && option.canDisplay"
[routerLink]="option.routerLink"
(click)="option.click && option.click()">
(click)="option.click && option.click(); close()">
<mat-icon [fontIcon]="option.icon"></mat-icon>
<span>{{ option.translationKey | translate }}</span>
</a>
Expand Down

0 comments on commit 479deb1

Please sign in to comment.