mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
fix: hide the scan related button when installation without scanner (#20616)
Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
parent
02b3561fff
commit
c75d08fcc4
@ -15,6 +15,7 @@
|
||||
<clr-dg-action-bar class="action-bar">
|
||||
<div>
|
||||
<button
|
||||
*ngIf="hasEnabledScanner"
|
||||
id="scan-btn"
|
||||
[clrLoading]="scanBtnState"
|
||||
type="button"
|
||||
@ -68,6 +69,7 @@
|
||||
<button
|
||||
clrDropdownItem
|
||||
id="stop-scan"
|
||||
*ngIf="hasEnabledScanner"
|
||||
[clrLoading]="stopBtnState"
|
||||
type="button"
|
||||
class="btn btn-secondary scan-btn action-dropdown-item"
|
||||
@ -97,6 +99,7 @@
|
||||
<span>{{ 'SBOM.STOP' | translate }}</span>
|
||||
</button>
|
||||
<div
|
||||
*ngIf="hasEnabledScanner || hasEnabledSbom()"
|
||||
class="dropdown-divider"
|
||||
role="separator"
|
||||
aria-hidden="true"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user