luci-mod-network: routes: implement cloneable for all tabs
authorPaul Donald <newtwen+github@gmail.com>
Sun, 24 Nov 2024 01:11:03 +0000 (02:11 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 24 Nov 2024 14:55:24 +0000 (15:55 +0100)
This enables cloning of individual routes and rules where one wishes
to make similar entries rapidly.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js

index d376dfafedf6533ea80bae321c35484eb5f7c6c9..d5d48246504cf0dc2c69719df2788585fae13e00 100644 (file)
@@ -35,6 +35,7 @@ return view.extend({
                        s.anonymous = true;
                        s.addremove = true;
                        s.sortable = true;
+                       s.cloneable = true;
                        s.nodescriptions = true;
 
                        s.tab('general', _('General Settings'));
@@ -127,6 +128,7 @@ return view.extend({
                        s.anonymous = true;
                        s.addremove = true;
                        s.sortable = true;
+                       s.cloneable = true;
                        s.nodescriptions = true;
 
                        s.tab('general', _('General Settings'));