Skip to content

Commit 73fa73c

Browse files
authored
Merge pull request goharbor#1995 from wknet123/master-jit
Fix invisible action for sysadmin.
2 parents 9a624c1 + 9427629 commit 73fa73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui_ng/src/app/project/list-project/list-project.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<clr-dg-column>{{'PROJECT.REPO_COUNT'| translate}}</clr-dg-column>
66
<clr-dg-column>{{'PROJECT.CREATION_TIME' | translate}}</clr-dg-column>
77
<clr-dg-row *ngFor="let p of projects" [clrDgItem]="p">
8-
<clr-dg-action-overflow [hidden]="p.current_user_role_id !== 1">
8+
<clr-dg-action-overflow [hidden]="!(p.current_user_role_id === 1 || isSystemAdmin)">
99
<button class="action-item" (click)="newReplicationRule(p)" [hidden]="!isSystemAdmin">{{'PROJECT.REPLICATION_RULE' | translate}}</button>
1010
<button class="action-item" (click)="toggleProject(p)">{{'PROJECT.MAKE' | translate}} {{(p.public === 0 ? 'PROJECT.PUBLIC' : 'PROJECT.PRIVATE') | translate}} </button>
1111
<button class="action-item" (click)="deleteProject(p)">{{'PROJECT.DELETE' | translate}}</button>

0 commit comments

Comments
 (0)