diff --git a/dashboard/sharedComponents/sidebar/layout.service.ts b/dashboard/sharedComponents/sidebar/layout.service.ts index 49cb7a3b..dd4fee8b 100644 --- a/dashboard/sharedComponents/sidebar/layout.service.ts +++ b/dashboard/sharedComponents/sidebar/layout.service.ts @@ -35,11 +35,6 @@ export class LayoutService { */ private isSmallScreenSubject: BehaviorSubject = new BehaviorSubject(false); - /** - * Add isDashboard: false on data of route config, if page is for a stakeholder but not for dashboard. - */ - private isDashboardSubject: BehaviorSubject = new BehaviorSubject(true); - /** * Add activeMenuItem: string on data of route config, if page should activate a specific MenuItem and route url does not match. */ @@ -90,12 +85,6 @@ export class LayoutService { } else { this.setSmallScreen(false); } - if (data['isDashboard'] !== undefined && - data['isDashboard'] === false) { - this.setDashboard(false); - } else { - this.setDashboard(true); - } if (data['activeMenuItem'] !== undefined && data['activeMenuItem'] !== null) { this.setActiveMenuItem(data['activeMenuItem']); @@ -147,14 +136,6 @@ export class LayoutService { this.isFrontPageSubject.next(value); } - get isDashboard(): Observable { - return this.isDashboardSubject.asObservable(); - } - - setDashboard(value: boolean) { - this.isDashboardSubject.next(value); - } - get isSmallScreen(): boolean { return this.isSmallScreenSubject.getValue(); } diff --git a/dashboard/sharedComponents/sidebar/sideBar.component.html b/dashboard/sharedComponents/sidebar/sideBar.component.html index 5f5873e5..087c01d4 100644 --- a/dashboard/sharedComponents/sidebar/sideBar.component.html +++ b/dashboard/sharedComponents/sidebar/sideBar.component.html @@ -1,6 +1,6 @@