From: bryanmontalvan <68972382+bryanmontalvan@users.noreply.github.com> Date: Wed, 3 Aug 2022 01:39:05 +0000 (-0400) Subject: mgr/dashboard: Start of status card X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=992cad77ac745fa1c2ab22687bfc37c27d3b35e8;p=ceph.git mgr/dashboard: Start of status card This commit is the bare-bones work of the status card. The only logic written in this commit is the Cluster health status icon. Signed-off-by: bryanmontalvan --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html index 8316d59d974..0b72e8c275a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/new-dashboard/dashboard/dashboard.component.html @@ -13,10 +13,44 @@ - - Text +
+ + +

Cluster

+ +

Data Health

+
+
+
+

Notifications

+ + + + + 1 + + + + 1 + + + + 1 + + + + 1 + +
; + healthData: any; constructor( private summaryService: SummaryService, private configService: ConfigurationService, @@ -36,7 +38,8 @@ export class DashboardComponent implements OnInit, OnDestroy { private clusterService: ClusterService, private osdService: OsdService, private authStorageService: AuthStorageService, - private featureToggles: FeatureTogglesService + private featureToggles: FeatureTogglesService, + private healthService: HealthService ) { this.permissions = this.authStorageService.getPermissions(); this.enabledFeature$ = this.featureToggles.get(); @@ -47,6 +50,7 @@ export class DashboardComponent implements OnInit, OnDestroy { this.osdSettings$ = this.osdService.getOsdSettings(); this.capacity$ = this.clusterService.getCapacity(); + this.getHealth(); } ngOnDestroy() { @@ -67,4 +71,10 @@ export class DashboardComponent implements OnInit, OnDestroy { version[0] + ' ' + version.slice(2, version.length).join(' '); }); } + + getHealth() { + this.healthService.getMinimalHealth().subscribe((data: any) => { + this.healthData = data; + }); + } }