diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-06 20:23:45 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-06 20:23:45 +1100 |
| commit | d8c29e8dcc925b6013880f66e690fa6b006d9154 (patch) | |
| tree | 479cc362b33862cce89694671d7b1a24f3b8bdae /src/components/TimeLine.vue | |
| parent | 50fc47e6e387c3b278526ef773badf63913389d6 (diff) | |
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.
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
