This is an automated email from the ASF dual-hosted git repository.

hshpak pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/develop by this push:
     new 387f56486 [DATALAB-2697] added condition for btn Endpoint and Manage 
quotas in Resourse nav panel
     new a9f310f5d Merge pull request #1495 from 
GennadiyShpak/feat/DATALAB-2697/admin-nav-panel
387f56486 is described below

commit 387f56486406df550f914b25f08273efb0081fd0
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Tue Apr 19 13:45:33 2022 +0300

    [DATALAB-2697] added condition for btn Endpoint and Manage quotas in 
Resourse nav panel
---
 .../src/app/administration/management/management.component.html     | 6 ++++--
 .../src/app/administration/management/management.component.ts       | 4 ++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.html
 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.html
index 3b2411aea..74d0c6009 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.html
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.html
@@ -66,7 +66,8 @@
           </button>
         </div>
       </div>
-      <button 
+      <button
+        *ngIf="isProjectAdmin"
         mat-raised-button 
         class="butt ssn" 
         (click)="showEndpointsDialog()"
@@ -76,7 +77,8 @@
       <!-- <button mat-raised-button class="butt ssn" 
(click)="openSsnMonitorDialog()">
         <i class="material-icons"></i>SSN Monitor
       </button> -->
-      <button 
+      <button
+        *ngIf="isProjectAdmin" 
         mat-raised-button 
         class="butt env" 
         (click)="openManageEnvironmentDialog()"
diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.ts
index 00c8d96ca..c950c77a0 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/management/management.component.ts
@@ -333,6 +333,10 @@ export class ManagementComponent implements OnInit {
       this.healthStatusService.recreateEdgeNode().subscribe(observer)
     }
   }
+
+  get isProjectAdmin(): boolean {
+    return this.healthStatus.projectAdmin
+  }
 }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to