Fixed an issue where the scan stop button can only be clicked once (#20302)

Signed-off-by: xuelichao <xuel@vmware.com>
This commit is contained in:
Lichao Xue 2024-04-19 13:01:54 +08:00 committed by GitHub
parent 9c3fc28250
commit b3dc183f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -907,7 +907,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
this.scanStoppedArtifactLength += 1;
// all selected scan action has stopped
if (this.scanStoppedArtifactLength === this.onStopScanArtifactsLength) {
this.onSendingScanCommand = e;
this.onSendingStopScanCommand = e;
}
}
@ -923,7 +923,7 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
this.sbomStoppedArtifactLength += 1;
// all selected scan action has stopped
if (this.sbomStoppedArtifactLength === this.onStopSbomArtifactsLength) {
this.onSendingSbomCommand = e;
this.onSendingStopSbomCommand = e;
}
}