You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/11/09 09:44:16 UTC
[incubator-streampipes] branch STREAMPIPES-426 updated: [hotfix]
Add notifications filter to prebuild script
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch STREAMPIPES-426
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/STREAMPIPES-426 by this push:
new fffdd82 [hotfix] Add notifications filter to prebuild script
fffdd82 is described below
commit fffdd8202575d5f2caeefe775b9c6be20fdbd86c
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Tue Nov 9 10:44:07 2021 +0100
[hotfix] Add notifications filter to prebuild script
---
ui/deployment/base-navigation.component.mst | 4 ++++
ui/src/app/core/components/base-navigation.component.ts | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ui/deployment/base-navigation.component.mst b/ui/deployment/base-navigation.component.mst
index 0ba3d1e..7922163 100644
--- a/ui/deployment/base-navigation.component.mst
+++ b/ui/deployment/base-navigation.component.mst
@@ -63,6 +63,9 @@ export abstract class BaseNavigationComponent {
{{/modulesActive}}
];
+ notificationsVisible = false;
+
+
constructor(protected authService: AuthService,
protected router: Router) {
@@ -72,6 +75,7 @@ export abstract class BaseNavigationComponent {
this.authService.user$.subscribe(user => {
this.menu.forEach(m => m.visible = this.isNavItemVisible(m.pageNames));
this.admin.forEach(m => m.visible = this.isNavItemVisible(m.pageNames));
+ this.notificationsVisible = this.isNavItemVisible([PageName.NOTIFICATIONS]);
});
this.activePage = this.router.url.replace('/', '');
this.activePageName = this.getPageTitle(this.activePage);
diff --git a/ui/src/app/core/components/base-navigation.component.ts b/ui/src/app/core/components/base-navigation.component.ts
index 430923b..98f431c 100644
--- a/ui/src/app/core/components/base-navigation.component.ts
+++ b/ui/src/app/core/components/base-navigation.component.ts
@@ -17,7 +17,7 @@
*/
-import { NavigationEnd, Router } from "@angular/router";
+import {NavigationEnd, Router} from "@angular/router";
import { PageName } from '../../_enums/page-name.enum';
import { AuthService } from '../../services/auth.service';
@@ -106,6 +106,7 @@ export abstract class BaseNavigationComponent {
notificationsVisible = false;
+
constructor(protected authService: AuthService,
protected router: Router) {