Commit 0cef303a authored by Alex ORLUC's avatar Alex ORLUC

FIX #16797 TIME 0:10 auto close menu in tablet when click on admin

parent b7a7fa64
Pipeline #11622 failed with stages
in 0 seconds
......@@ -7,7 +7,7 @@
</ion-header>
<ion-content>
<ion-list>
<ion-item *ngFor="let privilege of authService.user.administrativePrivileges" [routerLink]="privilege.route" [class.item-active]="isActiveRoute(privilege.route)">
<ion-item *ngFor="let privilege of authService.user.administrativePrivileges" [routerLink]="privilege.route" routerDirection="root" [class.item-active]="isActiveRoute(privilege.route)" (click)="menu.close('left-menu')">
<ion-icon slot="start" [name]="privilege.icon" color="primary"></ion-icon>
<ion-label>{{'lang.' + privilege.id | translate}}</ion-label>
</ion-item>
......
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { MenuController } from '@ionic/angular';
import { AuthService } from '../../service/auth.service';
export interface Privilege {
......@@ -21,7 +22,8 @@ export class AdminSidebarComponent implements OnInit {
constructor(
private route: ActivatedRoute,
private router: Router,
public authService: AuthService
public authService: AuthService,
public menu: MenuController
) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment