From e39ab8725531bd390d57a037823b8546f68ce5be Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 21 Sep 2019 18:43:42 +0200 Subject: luci-mod-system: mounts.js: implicitely create globals section Signed-off-by: Jo-Philipp Wich --- .../luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js index b9028b20e..dfc17ee73 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js @@ -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')); -- cgit v1.2.3