summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-21 18:46:17 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-21 18:46:17 +0200
commit4518f8f3428471aa44fe7d2bd6e2cfa5be23af8f (patch)
treec027ad69a405f35df58bd22e668c6e14d4742c73 /modules/luci-mod-system
parente39ab8725531bd390d57a037823b8546f68ce5be (diff)
luci-mod-system: mounts.js: preload fstab uci
Preload the uci configuration on page load to avoid accidential double rendering of the globals section and mount overview table. Fixes: e39ab8725 ("luci-mod-system: mounts.js: implicitely create globals section") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js3
1 files changed, 2 insertions, 1 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 dfc17ee73..301ebab33 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
@@ -137,7 +137,8 @@ return L.view.extend({
callFileStat('/usr/sbin/e2fsck'),
callFileStat('/usr/sbin/fsck.f2fs'),
callFileStat('/usr/sbin/dosfsck'),
- callFileStat('/usr/bin/btrfsck')
+ callFileStat('/usr/bin/btrfsck'),
+ uci.load('fstab')
]);
},