mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
fix: adds label for multiple selected artifacts
Signed-off-by: Antoine <anthonyfg9@gmail.com> Signed-off-by: anthony <floresgomezanthony@gmail.com>
This commit is contained in:
parent
438d4c03bb
commit
59fd605f2d
@ -527,13 +527,14 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
addLabel(label: Label) {
|
||||
if (!this.inprogress) {
|
||||
this.inprogress = true;
|
||||
this.selectedRow.forEach((artifact: Artifact) => {
|
||||
const params: NewArtifactService.AddLabelParams = {
|
||||
projectName: this.projectName,
|
||||
repositoryName: dbEncodeURIComponent(this.repoName),
|
||||
reference: this.selectedRow[0].digest,
|
||||
reference: artifact.digest,
|
||||
label: label,
|
||||
};
|
||||
this.inprogress = true;
|
||||
this.newArtifactService
|
||||
.addLabel(params)
|
||||
.pipe(finalize(() => (this.inprogress = false)))
|
||||
@ -546,6 +547,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
|
||||
this.errorHandlerService.error(err);
|
||||
},
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
removeLabel(label: Label) {
|
||||
|
Loading…
Reference in New Issue
Block a user