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 2022/05/26 21:45:12 UTC

[incubator-streampipes] branch STREAMPIPES-537-NEW updated: [STREAMPIPES-537] Fix highlighted route in iconbar

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-537-NEW
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-537-NEW by this push:
     new e2e4953a2 [STREAMPIPES-537] Fix highlighted route in iconbar
e2e4953a2 is described below

commit e2e4953a250691220918812ab7186d181bbfd89f
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Thu May 26 23:44:59 2022 +0200

    [STREAMPIPES-537] Fix highlighted route in iconbar
---
 ui/deployment/base-navigation.component.mst             | 2 +-
 ui/src/app/core/components/iconbar/iconbar.component.ts | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui/deployment/base-navigation.component.mst b/ui/deployment/base-navigation.component.mst
index 792216392..69be85cb3 100644
--- a/ui/deployment/base-navigation.component.mst
+++ b/ui/deployment/base-navigation.component.mst
@@ -81,7 +81,7 @@ export abstract class BaseNavigationComponent {
       this.activePageName = this.getPageTitle(this.activePage);
       this.router.events.subscribe(event => {
         if (event instanceof NavigationEnd) {
-          this.activePage = event.url.replace('/', '');
+          this.activePage = event.url.split('/')[1];
           this.activePageName = this.getPageTitle(this.activePage);
         }
       });
diff --git a/ui/src/app/core/components/iconbar/iconbar.component.ts b/ui/src/app/core/components/iconbar/iconbar.component.ts
index c775ce986..ee86a6fc0 100644
--- a/ui/src/app/core/components/iconbar/iconbar.component.ts
+++ b/ui/src/app/core/components/iconbar/iconbar.component.ts
@@ -21,9 +21,9 @@ import { BaseNavigationComponent } from '../base-navigation.component';
 import { Router } from '@angular/router';
 import { NotificationCountService } from '../../../services/notification-count-service';
 import { AuthService } from '../../../services/auth.service';
-import { Subscription, timer } from "rxjs";
-import { exhaustMap, mergeMap } from "rxjs/operators";
-import { RestApi } from "../../../services/rest-api.service";
+import { Subscription, timer } from 'rxjs';
+import { exhaustMap } from 'rxjs/operators';
+import { RestApi } from '../../../services/rest-api.service';
 
 @Component({
   selector: 'iconbar',