mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
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:
parent
5bb6a18cd4
commit
d74e1b19b6
@ -436,6 +436,9 @@ export default {
|
|||||||
|
|
||||||
return startInBounds || endInBounds || middleInBounds;
|
return startInBounds || endInBounds || middleInBounds;
|
||||||
},
|
},
|
||||||
|
isActivityInProgress(activity) {
|
||||||
|
return this.persistedActivityStates[activity.id] === 'in-progress';
|
||||||
|
},
|
||||||
filterActivities(activity) {
|
filterActivities(activity) {
|
||||||
if (this.isEditing) {
|
if (this.isEditing) {
|
||||||
return true;
|
return true;
|
||||||
@ -460,7 +463,8 @@ export default {
|
|||||||
return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
//current event or future start event or past end event
|
//current event or future start event or past end event
|
||||||
|
Loading…
Reference in New Issue
Block a user