luci-mod-system: mount sections are always mounted unless they are explicitly not...
authorFlorian Eckert <[email protected]>
Tue, 12 Apr 2022 11:01:14 +0000 (13:01 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 5 Dec 2022 09:42:50 +0000 (10:42 +0100)
fixes #4862

Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit 5abb2847ba7267a2c9cdbcb8ef506f0be7015047)

modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js

index f8c9dfd129dc5cbca9482214613b0813dbe81b19..7c26bf060abe489cfd2f53cc429f16857188b948 100644 (file)
@@ -242,6 +242,7 @@ return view.extend({
 
                o = s.taboption('general', form.Flag, 'enabled', _('Enabled'));
                o.rmempty  = false;
+               o.default = true;
                o.editable = true;
 
                o = s.taboption('general', form.DummyValue, '_device', _('Device'));