mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
[cherry-pick] fix: disable the scan related button when installation 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>
This commit is contained in:
parent
08e5553536
commit
04e360660b
@ -127,6 +127,12 @@ export class ArtifactListPageService {
|
||||
ClrLoadingState.ERROR
|
||||
);
|
||||
}
|
||||
} else {
|
||||
this.updateStates(
|
||||
false,
|
||||
ClrLoadingState.ERROR,
|
||||
ClrLoadingState.ERROR
|
||||
);
|
||||
}
|
||||
},
|
||||
error => {
|
||||
|
@ -34,7 +34,6 @@
|
||||
<span>{{ 'VULNERABILITY.SCAN_NOW' | translate }}</span>
|
||||
</button>
|
||||
<button
|
||||
*ngIf="hasEnabledSbom()"
|
||||
id="generate-sbom-btn"
|
||||
[clrLoading]="generateSbomBtnState"
|
||||
type="button"
|
||||
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user