From becda28bb0717187ea7d973aff30b7619c674a69 Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Mon, 2 Oct 2023 10:35:08 +0200 Subject: [PATCH] mgr/dashboard: rbd image hide usage bar when disk usage is not provided Fixes: https://tracker.ceph.com/issues/63037 Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit 17d87af98a60471fc72cab4e6d5a53caf1847842) --- .../block/rbd-list/rbd-list.component.html | 47 +++++++------------ .../ceph/block/rbd-list/rbd-list.component.ts | 4 -- 2 files changed, 17 insertions(+), 34 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html index 41bf663be3b..6f85bf6db77 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html @@ -27,31 +27,6 @@ - -
-
- - - N/A - {{row.disk_usage | dimlessBinary}} - - - - N/A - {{row.total_disk_usage | dimlessBinary}} - - {{ value.pool_name }} - + + - + + + + + + + + +
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index a145fb2b64d..8fc36a4cb47 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -63,10 +63,6 @@ export class RbdListComponent extends ListWithDetails implements OnInit { deleteTpl: TemplateRef; @ViewChild('removingStatTpl', { static: true }) removingStatTpl: TemplateRef; - @ViewChild('provisionedNotAvailableTooltipTpl', { static: true }) - provisionedNotAvailableTooltipTpl: TemplateRef; - @ViewChild('totalProvisionedNotAvailableTooltipTpl', { static: true }) - totalProvisionedNotAvailableTooltipTpl: TemplateRef; @ViewChild('forcePromoteConfirmation', { static: true }) forcePromoteConfirmation: TemplateRef; @ViewChild('usedTmpl', { static: true }) -- 2.39.5