mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
Firewall: Rules [new]: adjust row selection behavior for internal rules
re-use the same logic that decides checkbox rendering to disable the relevant hover CSS and disable tabulator internal selection functionality
This commit is contained in:
@@ -142,6 +142,7 @@
|
||||
// hide the row selection checkbox for internal and dataTree group rules
|
||||
if (data.isGroup || !data.uuid || !data.uuid.includes("-")) {
|
||||
$element.addClass('row-no-select');
|
||||
$element.removeClass('tabulator-selectable');
|
||||
}
|
||||
|
||||
// bucket row (dataTree) styling
|
||||
@@ -149,6 +150,10 @@
|
||||
$element.addClass('bucket-row');
|
||||
}
|
||||
},
|
||||
selectableRowsCheck: function(row) {
|
||||
const data = row.getData();
|
||||
return !(data.isGroup || !data.uuid || !data.uuid.includes("-"));
|
||||
}
|
||||
},
|
||||
options: {
|
||||
responsive: true,
|
||||
|
||||
Reference in New Issue
Block a user