From 8dc8d39d4bdae3b8cfaf5e99be26af1258ef0f95 Mon Sep 17 00:00:00 2001 From: Stephan de Wit Date: Tue, 11 Jul 2023 16:47:53 +0200 Subject: [PATCH] dhcp: remove multiselect deletions and cleanup page The process simply fires off N requests, with each request restarting the dhcp server. Aggregating the addresses is likely not worth the effort, so just drop the feature. --- .../mvc/app/views/OPNsense/DHCP/leases4.volt | 80 +++++++++---------- 1 file changed, 38 insertions(+), 42 deletions(-) diff --git a/src/opnsense/mvc/app/views/OPNsense/DHCP/leases4.volt b/src/opnsense/mvc/app/views/OPNsense/DHCP/leases4.volt index 6574edcc7..51037c351 100644 --- a/src/opnsense/mvc/app/views/OPNsense/DHCP/leases4.volt +++ b/src/opnsense/mvc/app/views/OPNsense/DHCP/leases4.volt @@ -54,7 +54,8 @@ search:'/api/dhcp/leases4/searchLease/', del:'/api/dhcp/leases4/delLease/', options: { - multiSelect: true, + selection: false, + multiSelect: false, useRequestHandlerOnGet: true, requestHandler: function(request) { request['inactive'] = show_inactive; @@ -102,11 +103,14 @@ return ''; } - let static_map = '' + '' + ''; + } /* The delete action can be hooked up to the default bootgrid behaviour */ let deleteip = '