Intevation / intelmq-fody

Web interface to IntelMQ
9 stars 3 forks source link

Remember state between subpages #27

Open bernhardreiter opened 7 years ago

bernhardreiter commented 7 years ago

Right now (e4f203fb5a01bcf05f8c01bec53abc3ee31de1e6) when entering date into a subpage and switching to another one and back, the data is gone.

Expected behaviour: keep the data.

rrenkert commented 7 years ago

Best way to implement this feature is to use states (https://vuejs.org/v2/guide/state-management.html, http://vuex.vuejs.org/en/intro.html ) for the components. Currently all components are data- or input driven and have no state implemented. To have consistent and useful states in the subpages I recommend to split up the huge single file subpages in smaller reusable components.