Skip to content

Commit

Permalink
Update the parameter to search cosign (goharbor#18963)
Browse files Browse the repository at this point in the history
1.Fixes goharbor#18960

Signed-off-by: AllForNothing <[email protected]>
  • Loading branch information
AllForNothing authored Jul 20, 2023
1 parent 9091661 commit b380b78
Showing 1 changed file with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -944,16 +944,19 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
page: 1,
pageSize: ACCESSORY_PAGE_SIZE,
};
listTagParams.q = encodeURIComponent(
`type=${AccessoryType.COSIGN}`
);
const cosignParam = listTagParams;
listTagParams.q = encodeURIComponent(
`type=${AccessoryType.NOTATION}`
);
forkJoin([
this.newArtifactService.listAccessories(cosignParam),
this.newArtifactService.listAccessories(listTagParams),
this.newArtifactService.listAccessories({
...listTagParams,
q: encodeURIComponent(
`type=${AccessoryType.COSIGN}`
),
}),
this.newArtifactService.listAccessories({
...listTagParams,
q: encodeURIComponent(
`type=${AccessoryType.NOTATION}`
),
}),
]).subscribe({
next: res => {
if (
Expand Down

0 comments on commit b380b78

Please sign in to comment.