Skip to content

Commit b3dc183

Browse files
authored
Fixed an issue where the scan stop button can only be clicked once (goharbor#20302)
Signed-off-by: xuelichao <xuel@vmware.com>
1 parent 9c3fc28 commit b3dc183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/portal/src/app/base/project/repository/artifact/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
907907
this.scanStoppedArtifactLength += 1;
908908
// all selected scan action has stopped
909909
if (this.scanStoppedArtifactLength === this.onStopScanArtifactsLength) {
910-
this.onSendingScanCommand = e;
910+
this.onSendingStopScanCommand = e;
911911
}
912912
}
913913

@@ -923,7 +923,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
923923
this.sbomStoppedArtifactLength += 1;
924924
// all selected scan action has stopped
925925
if (this.sbomStoppedArtifactLength === this.onStopSbomArtifactsLength) {
926-
this.onSendingSbomCommand = e;
926+
this.onSendingStopSbomCommand = e;
927927
}
928928
}
929929

0 commit comments

Comments
 (0)