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>
This commit is contained in:
Jo-Philipp Wich 2019-09-21 18:46:17 +02:00
parent e39ab87255
commit 4518f8f342

View 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')
]);
},