diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-14 16:10:31 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-14 16:10:31 +1100 |
| commit | 96805eeb9edbbdde2277d155090c955cfa664506 (patch) | |
| tree | b06e80281dca99e8cd2c8af2d7f3447a6db699fb /src/components/TimeLine.vue | |
| parent | 3704ad2b88263705ee8352505845c38e0e5aa71f (diff) | |
Allow showing events without images
Add setting for showing such events
Fix searches not always avoiding filtered categories
Diffstat (limited to 'src/components/TimeLine.vue')
| -rw-r--r-- | src/components/TimeLine.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index 8aeb883..bab6e5e 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -448,6 +448,9 @@ const idToEvent = computed(() => { // Maps visible event IDs to HistEvents if ((store.ctgs as {[ctg: string]: boolean})[event.ctg] == false){ continue; } + if (store.reqImgs && event.imgId == null){ + continue; + } map.set(event.id, event); } return map; @@ -1288,7 +1291,7 @@ function eventImgStyles(eventId: number){ return { width: store.eventImgSz + 'px', height: store.eventImgSz + 'px', - backgroundImage: `url(${getImagePath(event.imgId)})`, + backgroundImage: event.imgId == null ? 'none' : `url(${getImagePath(event.imgId)})`, backgroundColor: store.color.bgDark, backgroundSize: 'cover', borderColor: color, |
