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 841edfe0d fixed condition for nav bar btn
new b299f4d97 Merge pull request #1499 from
GennadiyShpak/feat/DATALAB-2697/admin-nav-panel
841edfe0d is described below
commit 841edfe0d31ca408b4aa22da65a29ceb71a241f2
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Fri Apr 22 08:19:36 2022 +0300
fixed condition for nav bar btn
---
.../src/app/administration/management/management.component.html | 6 +++---
.../src/app/administration/management/management.component.ts | 4 ----
2 files changed, 3 insertions(+), 7 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 83d004313..481eb7da5 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
@@ -19,7 +19,7 @@
<div class="base-retreat">
<div class="sub-nav">
- <div *ngIf="healthStatus?.admin" class="admin-group">
+ <div *ngIf="healthStatus?.admin || healthStatus?.projectAdmin"
class="admin-group">
<div class="action-select-wrapper admin-group" >
<span class="action-button-wrapper">
<button
@@ -67,7 +67,7 @@
</div>
</div>
<button
- *ngIf="!isProjectAdmin"
+ *ngIf="healthStatus?.admin"
mat-raised-button
class="butt ssn"
(click)="showEndpointsDialog()"
@@ -78,7 +78,7 @@
<i class="material-icons"></i>SSN Monitor
</button> -->
<button
- *ngIf="!isProjectAdmin"
+ *ngIf="healthStatus?.admin"
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 c950c77a0..00c8d96ca 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,10 +333,6 @@ 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]