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:
Jo-Philipp Wich 2019-09-25 19:42:06 +02:00
parent e17cd94be7
commit 855208c59d

View file

@ -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'),