summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-21 18:43:42 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-21 18:43:42 +0200
commite39ab8725531bd390d57a037823b8546f68ce5be (patch)
treeb733cc0271c4915da7024bb14a576dce62ed6eaf
parent71e265a7f038f172eada95576496ef240a9c83e7 (diff)
luci-mod-system: mounts.js: implicitely create globals section
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js3
1 files changed, 3 insertions, 0 deletions
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'));