luci-mod-system: mounts.js: preload fstab uci
authorJo-Philipp Wich <jo@mein.io>
Sat, 21 Sep 2019 16:46:17 +0000 (18:46 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 21 Sep 2019 16:46:17 +0000 (18:46 +0200)
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>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js

index dfc17ee732519b3db2b8dd4616e9428c734d58f1..301ebab33159638b4348b209679ee61250cdf2f9 100644 (file)
@@ -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')
                ]);
        },