Merge pull request #4046 from zhanhb/luci-mod-system-flash

luci-mod-system: fix button disabled status
This commit is contained in:
Jo-Philipp Wich 2020-05-13 10:11:12 +02:00 committed by GitHub
commit 55c1ae40ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -426,7 +426,7 @@ return view.extend({
E('button', { E('button', {
'class': 'cbi-button cbi-button-save', 'class': 'cbi-button cbi-button-save',
'click': ui.createHandlerFn(view, 'handleBackupSave', this.map), 'click': ui.createHandlerFn(view, 'handleBackupSave', this.map),
'disabled': isReadonlyView 'disabled': isReadonlyView || null
}, [ _('Save') ]) }, [ _('Save') ])
])); ]));