From: afreen23 Date: Tue, 30 Sep 2025 09:43:13 +0000 (+0530) Subject: Merge pull request #65459 from rhcs-dashboard/72944-hide-suppresed-alerts-on-dashboard X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7d5298b71a2d75254ee8f96eb64e4224ed8c2e4e;p=ceph.git Merge pull request #65459 from rhcs-dashboard/72944-hide-suppresed-alerts-on-dashboard mgr/dashboard : Hide suppressed alert on landing page Reviewed-by: Afreen Misbah Reviewed-by: Nizamudeen A --- 7d5298b71a2d75254ee8f96eb64e4224ed8c2e4e diff --cc src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts index 3266109490fc,6aa32132c238..215e8ece48c6 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/prometheus/active-alert-list/active-alert-list.component.ts @@@ -30,8 -31,22 +31,23 @@@ export class ActiveAlertListComponent e selection = new CdTableSelection(); icons = Icons; expandedInnerRow: any; + multilineTextKeys = ['description', 'impact', 'fix']; + filters: CdTableColumn[] = [ + { + name: $localize`State`, + prop: 'status.state', + filterOptions: [$localize`All`, $localize`Active`, $localize`Suppressed`], + filterInitValue: $localize`Active`, + filterPredicate: (row, value) => { + if (value === 'Active') return row.status?.state === AlertState.ACTIVE; + else if (value === 'Suppressed') return row.status?.state === AlertState.SUPPRESSED; + if (value === 'All') return true; + return false; + } + } + ]; + constructor( // NotificationsComponent will refresh all alerts every 5s (No need to do it here as well) private authStorageService: AuthStorageService,