Skip to content

Commit f890be6

Browse files
shefalijoshiakhenry
authored andcommitted
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.
1 parent bd11b85 commit f890be6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/timelist/TimelistComponent.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ export default {
436436
437437
return startInBounds || endInBounds || middleInBounds;
438438
},
439+
isActivityInProgress(activity) {
440+
return this.persistedActivityStates[activity.id] === 'in-progress';
441+
},
439442
filterActivities(activity) {
440443
if (this.isEditing) {
441444
return true;
@@ -460,7 +463,8 @@ export default {
460463
return false;
461464
}
462465
463-
if (!this.isActivityInBounds(activity)) {
466+
// An activity may be out of bounds, but if it is in-progress, we show it.
467+
if (!this.isActivityInBounds(activity) && !this.isActivityInProgress(activity)) {
464468
return false;
465469
}
466470
//current event or future start event or past end event

0 commit comments

Comments
 (0)