There is no confirm-modal before the admin leaves the /teachers/edit/x-route without saving information.
@hugolundin You were working on some modal-system?
I think this easily could be solved by looking for the first change in any of the input fields. If any change is detected, the variable unSavedChanges is set to true. If that variable is true when user tries to press "Tillbaka"-button, a confirmation modal is shown.
There is no confirm-modal before the admin leaves the
/teachers/edit/x
-route without saving information.@hugolundin You were working on some modal-system?
I think this easily could be solved by looking for the first change in any of the input fields. If any change is detected, the variable
unSavedChanges
is set totrue
. If that variable istrue
when user tries to press "Tillbaka"-button, a confirmation modal is shown.