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.
This commit is contained in:
Shefali Joshi 2024-12-06 14:38:27 -08:00 committed by GitHub
parent 5bb6a18cd4
commit d74e1b19b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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