From: pujashahu Date: Wed, 10 Dec 2025 10:57:46 +0000 (+0530) Subject: mgr/dashboard: where the alert page tag colors are not being applied X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=271d2f9660e18eaa086d4c62a5ddb87385fb8243;p=ceph.git mgr/dashboard: where the alert page tag colors are not being applied Fixes: https://tracker.ceph.com/issues/74176 Signed-off-by: pujashahu --- 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 b5c9eed87aee..53b6a945e3d9 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 82f844de5b3e..2893f59cc930 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 }}