mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 02:21:50 +08:00
luci-app-firewall: keep enabled on cloning
In order to keep option enabled o.rmempty is set to false. Signed-off-by: Christian Korber <ckorber@tdt.de>
This commit is contained in:
committed by
Paul Donald
parent
ec54122a48
commit
0c98cce386
@@ -225,6 +225,7 @@ return view.extend({
|
||||
o = s.option(form.Flag, 'enabled', _('Enable'));
|
||||
o.modalonly = false;
|
||||
o.default = o.enabled;
|
||||
o.rmempty = false;
|
||||
o.editable = true;
|
||||
o.tooltip = function(section_id) {
|
||||
const weekdays = uci.get('firewall', section_id, 'weekdays');
|
||||
|
||||
Reference in New Issue
Block a user