luci-mod-system: mounts.js: implicitely create globals section

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-09-21 18:43:42 +02:00
parent 71e265a7f0
commit e39ab87255

View file

@ -161,6 +161,9 @@ return L.view.extend({
btrfs: results[6]
};
if (!uci.sections('fstab', 'global').length)
uci.add('fstab', 'global');
m = new form.Map('fstab', _('Mount Points'));
s = m.section(form.TypedSection, 'global', _('Global Settings'));