luci-proto-wireguard: make peer entries sortable
authorPaul Donald <newtwen+github@gmail.com>
Fri, 25 Oct 2024 19:41:33 +0000 (21:41 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 25 Oct 2024 19:41:33 +0000 (21:41 +0200)
Closes #7354

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js

index aeccff4150a977d897b2f77b25f978cf324f3dac..a3ce76c96c8771958cc3fa63722e1f65eec63045 100644 (file)
@@ -210,6 +210,7 @@ return network.registerProtocol('wireguard', {
                ss.addbtntitle = _('Add peer');
                ss.nodescriptions = true;
                ss.modaltitle = _('Edit peer');
+               ss.sortable = true;
 
                ss.handleDragConfig = function(ev) {
                        ev.stopPropagation();