Skip to content
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

Merged
merged 3 commits into from
Feb 26, 2018
Merged

Add Reset to factory settings in admin page of web UI #558

merged 3 commits into from
Feb 26, 2018

Conversation

hyteoo
Copy link
Contributor

@hyteoo hyteoo commented Feb 13, 2018

Good useful option for the web UI


ask = (typeof ask == "undefined") ? true : ask;

if (numChanged > 0) {
Copy link
Owner

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.

}
}

if (ask) {
Copy link
Owner

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
@hyteoo
Copy link
Contributor Author

hyteoo commented Feb 15, 2018

True, that saved settings stuff was indeed useless.

@PieBru
Copy link

PieBru commented Feb 15, 2018

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.
Thanks to all.
Piero

@xoseperez
Copy link
Owner

I'm on holidays now. As soon as I'm back home I will test it and merge it.

Thank you!

@hyteoo hyteoo mentioned this pull request Feb 26, 2018
@xoseperez xoseperez changed the base branch from master to dev February 26, 2018 22:38
@xoseperez xoseperez merged commit ab07def into xoseperez:dev Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants