From d2f82bdcf81c8653af4f220ad3f37c8138df6371 Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Mon, 16 Mar 2026 13:23:08 +0530 Subject: [PATCH] mgr/dashboard: Add tootltip to storage overview Signed-off-by: Afreen Misbah (cherry picked from commit 90c09d867988137f32beb5328b147e2384cc5000) --- .../storage-card/overview-storage-card.component.html | 10 +++++++++- .../storage-card/overview-storage-card.component.ts | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.html index 0bb28a579a1..38c6f3823de 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.html @@ -16,7 +16,7 @@
- @if(displayUsedRaw && totalRaw && usedRawUnit && totalRawUnit) { + @if( totalRaw && usedRawUnit && totalRawUnit) {
{{usedRawUnit}} of {{totalRaw}} {{totalRawUnit}} used + + +
} @else { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.ts index e767784ed11..63611170c86 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/storage-card/overview-storage-card.component.ts @@ -31,6 +31,7 @@ import { OverviewStorageService } from '~/app/shared/api/storage-overview.servic import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service'; import { AreaChartComponent } from '~/app/shared/components/area-chart/area-chart.component'; import { PieChartComponent } from '~/app/shared/components/pie-chart/pie-chart.component'; +import { ComponentsModule } from '~/app/shared/components/components.module'; const CHART_HEIGHT = '45px'; @@ -103,7 +104,8 @@ const TopPoolsQueryMap = { SkeletonModule, LayoutModule, AreaChartComponent, - PieChartComponent + PieChartComponent, + ComponentsModule ], standalone: true, templateUrl: './overview-storage-card.component.html', -- 2.47.3