mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 03:35:21 +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">
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user