confirm before a factory reset
This commit is contained in:
parent
301783ae40
commit
9174f7d086
|
@ -12,7 +12,7 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#define VERSION "0.4.0"
|
||||
#define VERSION "0.4.1"
|
||||
|
||||
// #define GW_MESSAGE_DEBUG_ENABLED
|
||||
// #define FALLBACK_SERIAL
|
||||
|
|
|
@ -103,6 +103,10 @@
|
|||
})
|
||||
}
|
||||
function factoryReset(){
|
||||
if (! confirm("Really delete all configuration?\n"+
|
||||
"This will reset all your Wifi settings and disconnect you.")){
|
||||
return;
|
||||
}
|
||||
getJson("/api/resetConfig")
|
||||
.then(function(status){
|
||||
alertRestart();
|
||||
|
|
Loading…
Reference in New Issue