From d8c29e8dcc925b6013880f66e690fa6b006d9154 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 6 Jan 2023 20:23:45 +1100 Subject: Implement filtering by event categories Filter events in display and search suggestions. Make server queries allow specification of multiple categories. Make settings modal avoid disabling all categories. --- src/components/TimeLine.vue | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/TimeLine.vue') diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 13589d2..1583aef 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -444,6 +444,9 @@ const idToEvent = computed(() => { // Maps visible event IDs to HistEvents if (!event.start.isEarlier(lastDate.value)){ break; } + if ((store.ctgs as {[ctg: string]: boolean})[event.ctg] == false){ + continue; + } map.set(event.id, event); } return map; -- cgit v1.2.3