Merge pull request #11649 from jwangyangls/fix-signed-issue

[Fixed] Fix issue when delete signed tag
This commit is contained in:
jwangyangls 2020-04-17 16:54:42 +08:00 committed by GitHub
commit e93bd75d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 +