luci-mod-system: flash.js: disable mtdblock downloads on mtd-less systems
Ref: 3c40a7450a (commitcomment-35233073)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e17cd94be7
commit
855208c59d
1 changed files with 14 additions and 12 deletions
|
@ -508,6 +508,7 @@ return L.view.extend({
|
|||
o.onclick = L.bind(this.handleRestore, this);
|
||||
|
||||
|
||||
if (procmtd.length) {
|
||||
o = s.option(form.SectionValue, 'actions', form.NamedSection, 'actions', 'actions', _('Save mtdblock contents'), _('Click "Save mtdblock" to download specified mtdblock file. (NOTE: THIS FEATURE IS FOR PROFESSIONALS! )'));
|
||||
ss = o.subsection;
|
||||
|
||||
|
@ -522,6 +523,7 @@ return L.view.extend({
|
|||
o.inputstyle = 'action important';
|
||||
o.inputtitle = _('Save mtdblock');
|
||||
o.onclick = L.bind(this.handleBlock, this, hostname);
|
||||
}
|
||||
|
||||
|
||||
o = s.option(form.SectionValue, 'actions', form.NamedSection, 'actions', 'actions', _('Flash new firmware image'),
|
||||
|
|
Loading…
Reference in a new issue