From 271d2f9660e18eaa086d4c62a5ddb87385fb8243 Mon Sep 17 00:00:00 2001 From: pujashahu Date: Wed, 10 Dec 2025 16:27:46 +0530 Subject: [PATCH] mgr/dashboard: where the alert page tag colors are not being applied Fixes: https://tracker.ceph.com/issues/74176 Signed-off-by: pujashahu --- .../prometheus/silence-list/silence-list.component.ts | 9 ++++++++- .../src/app/shared/datatable/table/table.component.html | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts index b5c9eed87ae..53b6a945e3d 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/silence-list/silence-list.component.ts @@ -151,7 +151,14 @@ export class SilenceListComponent extends PrometheusListHelper { { name: $localize`Status`, prop: 'status.state', - cellTransformation: CellTemplate.classAdding + cellTransformation: CellTemplate.tag, + customTemplateConfig: { + map: { + active: { class: 'tag-danger' }, + pending: { class: 'tag-warning' }, + expired: { class: 'tag-default' } + } + } } ]; } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html index 82f844de5b3..2893f59cc93 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html @@ -343,7 +343,7 @@ {{(column?.customTemplateConfig?.map && column?.customTemplateConfig?.map[item]?.value) ? column.customTemplateConfig.map[item].value : column?.customTemplateConfig?.prefix ? column.customTemplateConfig.prefix + item : item }} -- 2.47.3