luci-mod-system: flash.js: rename handleReset to handleFirstboot
Rename the procedure to prevent a name clash with the standard view action
which we intentionally disable.
Ref: 3c40a7450a (commitcomment-35233207)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
dfe9d28987
commit
e17cd94be7
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ return L.view.extend({
|
||||||
form.parentNode.removeChild(form);
|
form.parentNode.removeChild(form);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleReset: function(ev) {
|
handleFirstboot: function(ev) {
|
||||||
if (!confirm(_('Do you really want to erase all settings?')))
|
if (!confirm(_('Do you really want to erase all settings?')))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -499,7 +499,7 @@ return L.view.extend({
|
||||||
o = ss.option(form.Button, 'reset', _('Reset to defaults'));
|
o = ss.option(form.Button, 'reset', _('Reset to defaults'));
|
||||||
o.inputstyle = 'negative important';
|
o.inputstyle = 'negative important';
|
||||||
o.inputtitle = _('Perform reset');
|
o.inputtitle = _('Perform reset');
|
||||||
o.onclick = this.handleReset;
|
o.onclick = this.handleFirstboot;
|
||||||
}
|
}
|
||||||
|
|
||||||
o = ss.option(form.Button, 'restore', _('Restore backup'), _('Custom files (certificates, scripts) may remain on the system. To prevent this, perform a factory-reset first.'));
|
o = ss.option(form.Button, 'restore', _('Restore backup'), _('Custom files (certificates, scripts) may remain on the system. To prevent this, perform a factory-reset first.'));
|
||||||
|
|
Loading…
Reference in a new issue