Skip to content

Commit

Permalink
chore(#9514): close sidebar on clicking same module in sidebar (#9554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benmuiruri authored Oct 18, 2024
1 parent 06324e6 commit 7f4648e
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 7f4648e

Please sign in to comment.