implement authentication and reusable data table
This commit is contained in:
@@ -90,83 +90,13 @@ export class NavService implements OnDestroy {
|
||||
this.screenWidth.next(width);
|
||||
}
|
||||
|
||||
MENUITEMS: Menu[] = [
|
||||
// Dashboard
|
||||
{ headTitle: 'MAIN' },
|
||||
{
|
||||
title: 'Dashboards',
|
||||
icon: `<i class="bx bx-home side-menu__icon"></i>`,
|
||||
type: 'sub',
|
||||
badgeClass: 'warning/10',
|
||||
badgeText: 'warning',
|
||||
badgeValue: '12',
|
||||
selected: false,
|
||||
active: false,
|
||||
dirchange: false,
|
||||
children: [
|
||||
{ path: '/dashboards/crm', title: 'CRM', type: 'link', dirchange: false, },
|
||||
items = new BehaviorSubject<Menu[]>([]);
|
||||
|
||||
],
|
||||
},
|
||||
setMenuItems(menuItems: Menu[]): void {
|
||||
this.items.next(menuItems);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
title: 'Error',
|
||||
type: 'sub',
|
||||
icon: `<i class="bx bx-error side-menu__icon"></i>`,
|
||||
active: false,
|
||||
dirchange: false,
|
||||
children: [
|
||||
|
||||
{
|
||||
path: 'error/error404',
|
||||
title: 'Error 404',
|
||||
type: 'link',
|
||||
dirchange: false,
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
title: 'Nested Menu',
|
||||
icon: `<i class="bx bx-layer side-menu__icon"></i>`,
|
||||
type: 'sub',
|
||||
active: false,
|
||||
children: [
|
||||
{
|
||||
title: 'Nested-1',
|
||||
dirchange: false,
|
||||
type: 'empty',
|
||||
active: false,
|
||||
selected: false,
|
||||
path: '/nested-menu/nested-1',
|
||||
},
|
||||
{
|
||||
title: 'Nested-2',
|
||||
type: 'sub',
|
||||
active: false,
|
||||
children: [
|
||||
{
|
||||
title: 'Nested-2.1',
|
||||
type: 'empty',
|
||||
active: false,
|
||||
},
|
||||
{
|
||||
title: 'Nested-2.2',
|
||||
type: 'empty',
|
||||
active: false,
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
];
|
||||
|
||||
items = new BehaviorSubject<Menu[]>(this.MENUITEMS);
|
||||
clearMenuItems(): void {
|
||||
this.items.next([]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user