luci-app-firewall: implement cloneable for all tabs (except zones)
authorPaul Donald <newtwen+github@gmail.com>
Sat, 23 Nov 2024 23:31:08 +0000 (00:31 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 24 Nov 2024 14:55:24 +0000 (15:55 +0100)
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>
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/ipsets.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js

index 70713be599e026602e090efe267ecd4d672a2311..34ab804257681b5d8e94f703865304c644f5cbdd 100644 (file)
@@ -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'));
index 40d47cb2e483388da669bdb4b48332b055cc4ae0..f7813a85a432248e539caae59868758066f2b4ae 100644 (file)
@@ -33,6 +33,7 @@ return view.extend({
                s.addremove = true;
                s.anonymous = true;
                s.sortable  = true;
+               s.cloneable = true;
                s.nodescriptions = true;
 
 
index b727f4e79826c78fa8059de1575de43337cc29f5..f51f92bf683259b769ed691ae1442c674c007b42 100644 (file)
@@ -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'));
index 8c05e1f2def1b48b7f8e87fb09cb6273a26db3a3..a700475e4907632e80e7ded1e112f4946ecd8f93 100644 (file)
@@ -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'));