From e8d1fa2619446a269d42924bc3114c479876c6f8 Mon Sep 17 00:00:00 2001 From: Shefali Date: Fri, 6 Dec 2024 12:37:02 -0800 Subject: [PATCH] If an activity is out of bounds, but in progress, display it in the currently visible list. --- src/plugins/timelist/TimelistComponent.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/timelist/TimelistComponent.vue b/src/plugins/timelist/TimelistComponent.vue index ab125af1262..3fc010ca234 100644 --- a/src/plugins/timelist/TimelistComponent.vue +++ b/src/plugins/timelist/TimelistComponent.vue @@ -436,6 +436,9 @@ export default { return startInBounds || endInBounds || middleInBounds; }, + isActivityInProgress(activity) { + return this.persistedActivityStates[activity.id] === 'in-progress'; + }, filterActivities(activity) { if (this.isEditing) { return true; @@ -460,7 +463,8 @@ export default { return false; } - if (!this.isActivityInBounds(activity)) { + // An activity may be out of bounds, but if it is in-progress, we show it. + if (!this.isActivityInBounds(activity) && !this.isActivityInProgress(activity)) { return false; } //current event or future start event or past end event