diff --git a/services/user-management.service.ts b/services/user-management.service.ts index 807d8ca7..d603ae1e 100644 --- a/services/user-management.service.ts +++ b/services/user-management.service.ts @@ -5,6 +5,7 @@ import {COOKIE, User} from "../login/utils/helper.class"; import {catchError, map, timeout} from "rxjs/operators"; import {NavigationEnd, Router} from "@angular/router"; import {EnvironmentSpecificService} from "../utils/properties/environment-specific.service"; +import {properties} from "../../../environments/environment"; @Injectable({ providedIn: 'root' @@ -15,10 +16,8 @@ export class UserManagementService { private readonly promise: Promise; constructor(private http: HttpClient, - private router: Router, - private environmentSpecificService: EnvironmentSpecificService) { + private router: Router) { this.promise = new Promise((resolve => { - this.environmentSpecificService.subscribeEnvironment().subscribe(properties => { const token = COOKIE.getCookie('AccessToken'); if (!token) { this.getUserInfoSubject.next(null); @@ -33,7 +32,6 @@ export class UserManagementService { resolve(); }); } - }); })); this.router.events.subscribe(event => { if (event instanceof NavigationEnd) { diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html index 81690e7d..6aa0be9a 100644 --- a/sharedComponents/navigationBar.component.html +++ b/sharedComponents/navigationBar.component.html @@ -51,7 +51,7 @@
    -
  • +
  • Dashboards