[Fixed] Fix issue when delete signed tag

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2020-04-17 16:04:16 +08:00
parent 3b0b9f3c7d
commit cd98a7a9b6

View File

@ -256,7 +256,7 @@ export class ArtifactTagComponent implements OnInit, OnDestroy {
}
}
delOperate(tag): Observable<any> | null {
delOperate(tag: Tag): Observable<any> | null {
// init operation info
let operMessage = new OperateInfo();
operMessage.name = 'OPERATION.DELETE_TAG';
@ -264,7 +264,7 @@ export class ArtifactTagComponent implements OnInit, OnDestroy {
operMessage.data.name = tag.name;
this.operationService.publishInfo(operMessage);
if (tag.signature) {
if (tag.signed) {
forkJoin(this.translateService.get("BATCH.DELETED_FAILURE"),
this.translateService.get("REPOSITORY.DELETION_SUMMARY_TAG_DENIED")).subscribe(res => {
let wrongInfo: string = res[1] + DeleteTagWithNotoryCommand1 + this.registryUrl +