From c14c3dbf9e04797da83f94cade863df427a649ab Mon Sep 17 00:00:00 2001 From: "stonezdj(Daojun Zhang)" Date: Thu, 17 Oct 2024 16:28:13 +0800 Subject: [PATCH] Change setHealth to setUnHealth to avoid misunderstanding (#21047) fixes #19923 Signed-off-by: stonezdj --- src/portal/src/app/app.component.ts | 4 +++- .../job-service-dashboard-health-check.service.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/portal/src/app/app.component.ts b/src/portal/src/app/app.component.ts index 44c71b1f8..07c3ce543 100644 --- a/src/portal/src/app/app.component.ts +++ b/src/portal/src/app/app.component.ts @@ -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); } diff --git a/src/portal/src/app/base/left-side-nav/job-service-dashboard/job-service-dashboard-health-check.service.ts b/src/portal/src/app/base/left-side-nav/job-service-dashboard/job-service-dashboard-health-check.service.ts index a834e5558..962253223 100644 --- a/src/portal/src/app/base/left-side-nav/job-service-dashboard/job-service-dashboard-health-check.service.ts +++ b/src/portal/src/app/base/left-side-nav/job-service-dashboard/job-service-dashboard-health-check.service.ts @@ -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 {