From 510f4c56ba1fc3da4ee3e106dfbad50f22c3bd77 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 7 Apr 2022 01:09:49 +0300 Subject: [PATCH] 1. LayoutService: Delete isDashboard. 2. Navbar: fix a bug with class add and remove. 3. Role-users: Add new search-input. 4. Modal make title h5 --- .../sidebar/layout.service.ts | 19 --------- .../sidebar/sideBar.component.html | 18 ++++---- .../role-users/role-users.component.html | 13 +++--- sharedComponents/menu.ts | 10 ++++- sharedComponents/navigationBar.component.html | 2 +- .../search-input/search-input.component.ts | 42 ++++++++++--------- utils/modal/alert.ts | 10 +++-- utils/modal/alertModal.module.ts | 3 +- 8 files changed, 56 insertions(+), 61 deletions(-) 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 @@