-
Notifications
You must be signed in to change notification settings - Fork 639
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
Add Reset to factory settings in admin page of web UI #558
Conversation
code/html/custom.js
Outdated
|
||
ask = (typeof ask == "undefined") ? true : ask; | ||
|
||
if (numChanged > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary, you are about to delete all settings with the factory reset, there is no need to save changes before.
code/html/custom.js
Outdated
} | ||
} | ||
|
||
if (ask) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always ask. Remove the ask check (and references to the variable).
Always confirm Factory reset
True, that saved settings stuff was indeed useless. |
BTW Xose changes above are a good quick tutorial for me on how to add a button to the WEB UI, a nice and simple jump start to tinkering also on that side of the Espurna framework. |
I'm on holidays now. As soon as I'm back home I will test it and merge it. Thank you! |
Good useful option for the web UI