diff --git a/web/src/components/Notifications/Sidebar.vue b/web/src/components/Notifications/Sidebar.vue index 9da694f8d..835395ca3 100644 --- a/web/src/components/Notifications/Sidebar.vue +++ b/web/src/components/Notifications/Sidebar.vue @@ -4,7 +4,6 @@ import { useMutation, useQuery, useSubscription } from '@vue/apollo-composable'; import { Button, - Select, Sheet, SheetContent, SheetHeader, @@ -46,9 +45,8 @@ const { mutate: recalculateOverview } = useMutation(resetOverview); const { confirm } = useConfirm(); const importance = ref(undefined); -const filterItems = [ - { type: 'label' as const, label: 'Notification Types' }, - { label: 'All Types', value: 'all' }, +const filterOptions: Array<{ label: string; value?: Importance }> = [ + { label: 'All Types' }, { label: 'Alert', value: Importance.ALERT }, { label: 'Info', value: Importance.INFO }, { label: 'Warning', value: Importance.WARNING }, @@ -99,8 +97,6 @@ onNotificationAdded(({ data }) => { if (notif.timestamp) { latestNotificationTimestamp.value = notif.timestamp; } - // probably smart to leave this log outside the if-block for the initial release - console.log('incoming notification', notif); if (!globalThis.toast) { return; } @@ -203,32 +199,46 @@ const prepareToViewNotifications = () => { -
-