From 03c028cb7f04f713155c436ece985329fcd4b9e2 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sun, 24 Nov 2024 00:31:08 +0100 Subject: [PATCH] luci-app-firewall: implement cloneable for all tabs (except zones) This enables cloning of individual rules, forwards, etc where one wishes to make similar entries rapidly. Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/view/firewall/forwards.js | 1 + .../htdocs/luci-static/resources/view/firewall/ipsets.js | 1 + .../htdocs/luci-static/resources/view/firewall/rules.js | 1 + .../htdocs/luci-static/resources/view/firewall/snats.js | 1 + 4 files changed, 4 insertions(+) diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js index 70713be599..34ab804257 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js @@ -156,6 +156,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js index 40d47cb2e4..f7813a85a4 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js @@ -33,6 +33,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.nodescriptions = true; diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js index b727f4e798..f51f92bf68 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js @@ -177,6 +177,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js index 8c05e1f2de..a700475e49 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js @@ -176,6 +176,7 @@ return view.extend({ s.addremove = true; s.anonymous = true; s.sortable = true; + s.cloneable = true; s.tab('general', _('General Settings')); s.tab('advanced', _('Advanced Settings')); -- 2.30.2