mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
Change setHealth to setUnHealth to avoid misunderstanding (#21047)
fixes #19923 Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
parent
5ac9733396
commit
c14c3dbf9e
@ -88,7 +88,9 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
if (this.sessionService.getCurrentUser()?.has_admin_role) {
|
if (this.sessionService.getCurrentUser()?.has_admin_role) {
|
||||||
this.jobServiceDashboardHealthCheckService.checkHealth();
|
this.jobServiceDashboardHealthCheckService.checkHealth();
|
||||||
} else {
|
} else {
|
||||||
this.jobServiceDashboardHealthCheckService.setHealthy(true);
|
this.jobServiceDashboardHealthCheckService.setUnHealthy(
|
||||||
|
false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}, CHECK_HEALTH_INTERVAL);
|
}, CHECK_HEALTH_INTERVAL);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ export class JobServiceDashboardHealthCheckService {
|
|||||||
return this._hasManuallyClosed;
|
return this._hasManuallyClosed;
|
||||||
}
|
}
|
||||||
|
|
||||||
setHealthy(value: boolean): void {
|
setUnHealthy(value: boolean): void {
|
||||||
this._hasUnhealthyQueue = value;
|
this._hasUnhealthyQueue = value;
|
||||||
}
|
}
|
||||||
setManuallyClosed(value: boolean): void {
|
setManuallyClosed(value: boolean): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user