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.
],

View File

@@ -464,10 +464,10 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
// INPUT
// console.log(codeName);
// Parse the setType JSON string into an object
let inputHtml = '';
console.log(codeName);
console.log(setType);
const setTypeObject = JSON.parse(setType.replace(/'/g, '"'));