Change setHealth to setUnHealth to avoid misunderstanding (#21047)

fixes #19923

Signed-off-by: stonezdj <stone.zhang@broadcom.com>
This commit is contained in:
stonezdj(Daojun Zhang) 2024-10-17 16:28:13 +08:00 committed by GitHub
parent 5ac9733396
commit c14c3dbf9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,9 @@ export class AppComponent implements OnInit, OnDestroy {
if (this.sessionService.getCurrentUser()?.has_admin_role) {
this.jobServiceDashboardHealthCheckService.checkHealth();
} else {
this.jobServiceDashboardHealthCheckService.setHealthy(true);
this.jobServiceDashboardHealthCheckService.setUnHealthy(
false
);
}
}, CHECK_HEALTH_INTERVAL);
}

View File

@ -21,7 +21,7 @@ export class JobServiceDashboardHealthCheckService {
return this._hasManuallyClosed;
}
setHealthy(value: boolean): void {
setUnHealthy(value: boolean): void {
this._hasUnhealthyQueue = value;
}
setManuallyClosed(value: boolean): void {