mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +01:00
[Fixed] Fix issue when delete signed tag
Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
parent
3b0b9f3c7d
commit
cd98a7a9b6
@ -256,7 +256,7 @@ export class ArtifactTagComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delOperate(tag): Observable<any> | null {
|
delOperate(tag: Tag): Observable<any> | null {
|
||||||
// init operation info
|
// init operation info
|
||||||
let operMessage = new OperateInfo();
|
let operMessage = new OperateInfo();
|
||||||
operMessage.name = 'OPERATION.DELETE_TAG';
|
operMessage.name = 'OPERATION.DELETE_TAG';
|
||||||
@ -264,7 +264,7 @@ export class ArtifactTagComponent implements OnInit, OnDestroy {
|
|||||||
operMessage.data.name = tag.name;
|
operMessage.data.name = tag.name;
|
||||||
this.operationService.publishInfo(operMessage);
|
this.operationService.publishInfo(operMessage);
|
||||||
|
|
||||||
if (tag.signature) {
|
if (tag.signed) {
|
||||||
forkJoin(this.translateService.get("BATCH.DELETED_FAILURE"),
|
forkJoin(this.translateService.get("BATCH.DELETED_FAILURE"),
|
||||||
this.translateService.get("REPOSITORY.DELETION_SUMMARY_TAG_DENIED")).subscribe(res => {
|
this.translateService.get("REPOSITORY.DELETION_SUMMARY_TAG_DENIED")).subscribe(res => {
|
||||||
let wrongInfo: string = res[1] + DeleteTagWithNotoryCommand1 + this.registryUrl +
|
let wrongInfo: string = res[1] + DeleteTagWithNotoryCommand1 + this.registryUrl +
|
||||||
|
Loading…
Reference in New Issue
Block a user