dwyl / app-mvp-elm

:palm_tree: The Elm MVP @dwyl application
https://app-mvp-elm.herokuapp.com/
GNU General Public License v3.0
7 stars 0 forks source link

Show started capture on top of the captures list #41

Open SimonLab opened 4 years ago

SimonLab commented 4 years ago

Now that we have a way to sort captures by status, see #40 one solution to make sure a started capture is displayed on top of the list is to sort the list by "InProgress" when a timer is started.

Doing this way keep the sorting consistent and avoid having a started capture on top of the list while the sorting is different.

SimonLab commented 4 years ago

This can in fact easily implemented as we just need to update the sortCaptures state of the model when a timer is started: start-sort