From d74e1b19b61d636aebf41e774e75dfb0558157c2 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Fri, 6 Dec 2024 14:38:27 -0800 Subject: [PATCH] In progress activities that are out of bounds are shown (#7945) 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 ab125af126..3fc010ca23 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