From 1044737f9d27c907acafd669ba907722cc031bc4 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 12 Jun 2020 13:22:04 +0000 Subject: [PATCH] [Library | Trunk]: Remove dashboard menu on usage-statistics. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58902 d315682c-612b-4755-9ff5-7f18f6832af3 --- services/user-management.service.ts | 6 ++---- sharedComponents/navigationBar.component.html | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) 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