fix: hide the scan related button when installation without scanner (#20616)

Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
Chlins Zhang 2024-06-20 13:30:02 +08:00 committed by GitHub
parent 02b3561fff
commit c75d08fcc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@
<clr-dg-action-bar class="action-bar"> <clr-dg-action-bar class="action-bar">
<div> <div>
<button <button
*ngIf="hasEnabledScanner"
id="scan-btn" id="scan-btn"
[clrLoading]="scanBtnState" [clrLoading]="scanBtnState"
type="button" type="button"
@ -68,6 +69,7 @@
<button <button
clrDropdownItem clrDropdownItem
id="stop-scan" id="stop-scan"
*ngIf="hasEnabledScanner"
[clrLoading]="stopBtnState" [clrLoading]="stopBtnState"
type="button" type="button"
class="btn btn-secondary scan-btn action-dropdown-item" class="btn btn-secondary scan-btn action-dropdown-item"
@ -97,6 +99,7 @@
<span>{{ 'SBOM.STOP' | translate }}</span> <span>{{ 'SBOM.STOP' | translate }}</span>
</button> </button>
<div <div
*ngIf="hasEnabledScanner || hasEnabledSbom()"
class="dropdown-divider" class="dropdown-divider"
role="separator" role="separator"
aria-hidden="true"></div> aria-hidden="true"></div>