diff --git a/src/app/components/sidebar/sidebar.component.html b/src/app/components/sidebar/sidebar.component.html index 1a100440..50e03c29 100644 --- a/src/app/components/sidebar/sidebar.component.html +++ b/src/app/components/sidebar/sidebar.component.html @@ -101,22 +101,22 @@ - -
- - - - - - - - - -
- + +
+ + + + + + + + + +
+
@@ -125,12 +125,14 @@ -
- - contacts - -
+ +
+ + contacts + +
+
diff --git a/src/app/components/sidebar/sidebar.component.ts b/src/app/components/sidebar/sidebar.component.ts index 36cc11a2..25e25016 100644 --- a/src/app/components/sidebar/sidebar.component.ts +++ b/src/app/components/sidebar/sidebar.component.ts @@ -33,6 +33,8 @@ export class SidebarComponent implements OnInit { isVisibleAPP: boolean; isVisibleANA: boolean; isVisibleACT: boolean; + isVisibleMON: boolean; + isVisibleCNT: boolean; photo_profile_URL: string; project_id: string; DASHBOARD_URL: string; @@ -298,26 +300,50 @@ export class SidebarComponent implements OnInit { this.isVisibleAPP = true; } } + + if (key.includes("MON")) { + let lbs = key.split(":"); + if (lbs[1] === "F") { + this.isVisibleMON = false; + } else { + this.isVisibleMON = true; + } + } + + if (key.includes("CNT")) { + let lbs = key.split(":"); + if (lbs[1] === "F") { + this.isVisibleCNT = false; + } else { + this.isVisibleCNT = true; + } + } + }); if (!this.public_Key.includes("ANA")) { this.isVisibleANA = false; } - if (!this.public_Key.includes("ACT")) { this.isVisibleACT = false; } - - if (!this.public_Key.includes("APP")) { this.isVisibleAPP = false; } + if (!this.public_Key.includes("MON")) { + this.isVisibleMON = false; + } + if (!this.public_Key.includes("CNT")) { + this.isVisibleCNT = false; + } } else { this.isVisibleANA = false; this.isVisibleACT = false; this.isVisibleAPP = false; + this.isVisibleMON = false; + this.isVisibleCNT = false; }