luci-app-firewall: keep enabled on cloning
authorChristian Korber <redacted>
Fri, 22 May 2026 10:03:46 +0000 (12:03 +0200)
committerPaul Donald <redacted>
Mon, 25 May 2026 08:35:28 +0000 (11:35 +0300)
In order to keep option enabled o.rmempty is set to false.

Signed-off-by: Christian Korber <redacted>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js

index 0a13bf24ace5a201196f8f6b93a4dce10e07f3fb..3123385224a913e769b07d71355a8eb3f974bcea 100644 (file)
@@ -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');
git clone https://git.99rst.org/PROJECT