Skip to content

Commit

Permalink
[cherry-pick] fix: disable the scan related button when installation …
Browse files Browse the repository at this point in the history
…without scanner or scanner deactived (#20661)

fix: disable the scan related button when installation without scanner or scanner deactived

Signed-off-by: chlins <chlins.zhang@gmail.com>
  • Loading branch information
chlins authored Jun 26, 2024
1 parent 08e5553 commit 04e3606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ export class ArtifactListPageService {
ClrLoadingState.ERROR
);
}
} else {
this.updateStates(
false,
ClrLoadingState.ERROR,
ClrLoadingState.ERROR
);
}
},
error => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<span>{{ 'VULNERABILITY.SCAN_NOW' | translate }}</span>
</button>
<button
*ngIf="hasEnabledSbom()"
id="generate-sbom-btn"
[clrLoading]="generateSbomBtnState"
type="button"
Expand Down Expand Up @@ -82,7 +81,6 @@
<button
clrDropdownItem
id="stop-sbom-btn"
*ngIf="hasEnabledSbom()"
[clrLoading]="stopBtnState"
type="button"
class="btn btn-secondary scan-btn action-dropdown-item"
Expand Down

0 comments on commit 04e3606

Please sign in to comment.