mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-11 10:27:58 +01:00
Merge pull request #11649 from jwangyangls/fix-signed-issue
[Fixed] Fix issue when delete signed tag
This commit is contained in:
commit
e93bd75d38
@ -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 +
|
||||
|
Loading…
Reference in New Issue
Block a user