From: Kiefer Chang Date: Fri, 31 May 2019 07:28:25 +0000 (+0800) Subject: mgr/dashboard: fix MDS charts are stacked in Filesystems page X-Git-Tag: v14.2.3~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=407cecb0cc0a14c846e5eb7cbf6ca55f73b3815e;p=ceph.git mgr/dashboard: fix MDS charts are stacked in Filesystems page Also include some UI enhancements: - Fix MDS chart container is not aligned to other components. - Show header on client table. Fixes: https://tracker.ceph.com/issues/37579 Signed-off-by: Kiefer Chang (cherry picked from commit a3e76ac5f5cf56f830fd2ae9d2e2ac4585195fc2) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.scss b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.scss index 62a023b9aaf..81457a14708 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.scss +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.scss @@ -1,6 +1,8 @@ @import '../../../../styles/chart-tooltip.scss'; .chart-container { + position: relative; height: 500px; width: 100%; + margin-bottom: 20px; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts index 1dd411677a7..7c5054e3c84 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-chart/cephfs-chart.component.ts @@ -71,6 +71,10 @@ export class CephfsChartComponent implements OnChanges, OnInit { } ], options: { + title: { + text: this.mdsCounter.name, + display: true + }, responsive: true, maintainAspectRatio: false, legend: { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.html index ae2e2160b19..8b84e618f5b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-clients/cephfs-clients.component.html @@ -2,6 +2,5 @@ + (fetchData)="refresh()"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html index 81ae6060849..73a385bee6a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-detail/cephfs-detail.component.html @@ -25,9 +25,10 @@ + MDS performance counters
-
+