summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-firewall/htdocs/luci-static
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-11-24 00:31:08 +0100
committerPaul Donald <newtwen+github@gmail.com>2024-11-24 15:55:24 +0100
commit03c028cb7f04f713155c436ece985329fcd4b9e2 (patch)
treea9de2f51da9af3666392dd94ab2916a043bff264 /applications/luci-app-firewall/htdocs/luci-static
parent22cccf7b042e537b1e1b99fdae8bf18fa646b997 (diff)
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 <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-firewall/htdocs/luci-static')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js1
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js1
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js1
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js1
4 files changed, 4 insertions, 0 deletions
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'));