]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / health / health.component.ts
index 4d1dac769a4b3a2e12ab995e48b28e7c29c2960f..b11d12e496902378a9bb306a46411b5398392c3e 100644 (file)
@@ -34,27 +34,8 @@ export class HealthComponent implements OnInit, OnDestroy {
   icons = Icons;
   color: string;
 
-  clientStatsConfig = {
-    colors: [
-      {
-        backgroundColor: [
-          this.cssHelper.propertyValue('chart-color-cyan'),
-          this.cssHelper.propertyValue('chart-color-purple')
-        ]
-      }
-    ]
-  };
-
-  rawCapacityChartConfig = {
-    colors: [
-      {
-        backgroundColor: [
-          this.cssHelper.propertyValue('chart-color-blue'),
-          this.cssHelper.propertyValue('chart-color-gray')
-        ]
-      }
-    ]
-  };
+  clientStatsConfig: any = {};
+  rawCapacityChartConfig: any = {};
 
   pgStatusChartConfig = {
     options: {
@@ -78,6 +59,27 @@ export class HealthComponent implements OnInit, OnDestroy {
   }
 
   ngOnInit() {
+    this.clientStatsConfig = {
+      colors: [
+        {
+          backgroundColor: [
+            this.cssHelper.propertyValue('chart-color-cyan'),
+            this.cssHelper.propertyValue('chart-color-purple')
+          ]
+        }
+      ]
+    };
+
+    this.rawCapacityChartConfig = {
+      colors: [
+        {
+          backgroundColor: [
+            this.cssHelper.propertyValue('chart-color-blue'),
+            this.cssHelper.propertyValue('chart-color-gray')
+          ]
+        }
+      ]
+    };
     this.interval = this.refreshIntervalService.intervalData$.subscribe(() => {
       this.getHealth();
     });