GraphQL 0.11 - Load devices json on Query, _KEEP_ bugfix for old settings

This commit is contained in:
jokob-sk
2024-11-11 12:01:09 +11:00
parent bf9f55355e
commit 60777b2f82
6 changed files with 25 additions and 59 deletions

View File

@@ -378,6 +378,9 @@ function getDeviceStatus(item)
// -----------------------------------------------------------------------------
function initializeDatatable_new (status) {
console.log(tableColumnVisible);
// Build GraphQL query dynamically based on tableColumnVisible
let columnsToFetch = [
'devMac', 'devName', 'devLastConnection', 'devIsArchived', 'devOwner', 'devType',
@@ -481,7 +484,7 @@ $.ajax({
} else {
$(td).html('');
}
}},
}}
// Other columns (Status, MAC, Date, etc.) can be similarly customized.
],