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,