-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn user in WebUI of unsaved changes #911
Comments
@MichaelDvP said in #891 (comment)
which got me thinking. I checked how for example my Unifi network Web interface does this. If you make any changes then an UPDATE and CANCEL button appear like: this is a nice approach. |
Or just a messagebox on top or bottom of page if something i changed. |
I'll take a look |
it was too complicated to adjust so I just took it out. It was always a 'nice to have' to show the mask icons on the edit screen but just duplicating the functionality. Well, that's my excuse anyway ;-) |
In the tec build, I've
|
I noticed in the Customization page there's a bug when it uses the old name, so need to fix that first |
Works good and looks nice, but after saving the changes the old-status is not updated, i have to leave the page and reload it to set this setting back. |
Already found, insert here: EMS-ESP32/interface/src/utils/useRest.ts Line 56 in b218bf1
setOrigData(response.data); and it works as expected. |
great, I'll add and test this weekend when I'm back home. I didn't see this behaviour when running standalone ( |
I couldn't reproduce this? If I make a change, apply it, the form is updated. Can you give an example for me to try out? |
Go to settings, change a setting, let's say activate
|
bingo! got it, thanks @MichaelDvP |
Feature to prompt the user of unsaved changes before navigating off a page.
Many times I've gone into the Customization page, make some changes and then forget to click the 'SAVE' button, so have to go back and do it all over again. Maybe it's just me :)
The text was updated successfully, but these errors were encountered: