Add delete repo permission for robot account (#16297)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
孙世军 2022-01-27 13:04:18 +08:00 committed by GitHub
parent 8554b7d7c5
commit 241391984b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,11 @@ export const INITIAL_ACCESSES: FrontAccess[] = [
"action": "pull",
"checked": true
},
{
"resource": "repository",
"action": "delete",
"checked": true
},
{
"resource": "artifact",
"action": "delete",

View File

@ -722,6 +722,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
retag() {
if (this.selectedRow && this.selectedRow.length && !this.depth) {
this.retagDialogOpened = true;
this.imageNameInput.imageNameForm.reset();
this.retagSrcImage = this.repoName + ":" + this.selectedRow[0].digest;
}
}