]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: Fix CephFS chart
authorStephan Müller <smueller@suse.com>
Thu, 8 Aug 2019 14:33:06 +0000 (16:33 +0200)
committerStephan Müller <smueller@suse.com>
Fri, 23 Aug 2019 08:41:44 +0000 (10:41 +0200)
There was a problem with the CephFS chart that causes the chart not to
show on initialization. This commit fixes that.

Fixes: https://tracker.ceph.com/issues/41166
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.html

index dc932361da96d8b96d4bcaff120988cae7d62c6c..b81bc20ba1cff0f51c28e7cebabc79580c4719ed 100644 (file)
@@ -1,10 +1,9 @@
-<div class="chart-container"
-     *ngIf="chart?.datasets">
+<div class="chart-container">
   <canvas baseChart
           #chartCanvas
-          [datasets]="chart?.datasets"
-          [options]="chart?.options"
-          [chartType]="chart?.chartType">
+          [datasets]="chart.datasets"
+          [options]="chart.options"
+          [chartType]="chart.chartType">
   </canvas>
   <div class="chartjs-tooltip"
        #chartTooltip>