Skip to content

Commit

Permalink
fix: hide the scan related button when installation without scanner (#…
Browse files Browse the repository at this point in the history
…20616)

Signed-off-by: chlins <chlins.zhang@gmail.com>
  • Loading branch information
chlins committed Jun 20, 2024
1 parent 02b3561 commit c75d08f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<clr-dg-action-bar class="action-bar">
<div>
<button
*ngIf="hasEnabledScanner"
id="scan-btn"
[clrLoading]="scanBtnState"
type="button"
Expand Down Expand Up @@ -68,6 +69,7 @@
<button
clrDropdownItem
id="stop-scan"
*ngIf="hasEnabledScanner"
[clrLoading]="stopBtnState"
type="button"
class="btn btn-secondary scan-btn action-dropdown-item"
Expand Down Expand Up @@ -97,6 +99,7 @@
<span>{{ 'SBOM.STOP' | translate }}</span>
</button>
<div
*ngIf="hasEnabledScanner || hasEnabledSbom()"
class="dropdown-divider"
role="separator"
aria-hidden="true"></div>
Expand Down

0 comments on commit c75d08f

Please sign in to comment.