@thetradeengineorg1/snova-shell-module 0.0.265 → 0.0.266
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js +1 -20
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js.map +1 -1
- package/esm2015/lib/shell-components/components/sidenav/sidenav.component.js +3 -22
- package/fesm2015/thetradeengineorg1-snova-shell-module.js +1 -20
- package/fesm2015/thetradeengineorg1-snova-shell-module.js.map +1 -1
- package/lib/shell-components/components/sidenav/sidenav.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15658,26 +15658,7 @@
|
|
|
15658
15658
|
this.store = store;
|
|
15659
15659
|
}
|
|
15660
15660
|
SidenavComponent.prototype.ngOnInit = function () {
|
|
15661
|
-
|
|
15662
|
-
var dashboardMenuItem = {
|
|
15663
|
-
id: 'dashboard-menu-item',
|
|
15664
|
-
type: 'link',
|
|
15665
|
-
menu: 'Dashboard',
|
|
15666
|
-
state: 'dashboard-management/dashboard',
|
|
15667
|
-
icon: 'dashboard',
|
|
15668
|
-
tooltip: 'Dashboard',
|
|
15669
|
-
disabled: false,
|
|
15670
|
-
menuCategory: 'Main'
|
|
15671
|
-
};
|
|
15672
|
-
this.menuItems$ = this.store.pipe(i3.select(getCurrentActiveMenuCategoryMenuItems), operators.map(function (menuList) {
|
|
15673
|
-
// Check if dashboard already exists in the menu
|
|
15674
|
-
var hasDashboard = menuList.some(function (item) { return item.id === 'dashboard-menu-item'; });
|
|
15675
|
-
// If not, add it at the beginning
|
|
15676
|
-
if (!hasDashboard) {
|
|
15677
|
-
return __spreadArray([dashboardMenuItem], __read(menuList));
|
|
15678
|
-
}
|
|
15679
|
-
return menuList;
|
|
15680
|
-
}), operators.tap(function (menuList) { return console.log(menuList); }));
|
|
15661
|
+
this.menuItems$ = this.store.pipe(i3.select(getCurrentActiveMenuCategoryMenuItems), operators.tap(function (menuList) { return console.log(menuList); }));
|
|
15681
15662
|
this.store.dispatch(new GetAllMenuItemsTriggered(MenuCategories.Main));
|
|
15682
15663
|
};
|
|
15683
15664
|
return SidenavComponent;
|