mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
GraphQL 0.11 - Load devices json on Query, _KEEP_ bugfix for old settings
This commit is contained in:
@@ -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.
|
||||
],
|
||||
|
||||
@@ -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, '"'));
|
||||
|
||||
Reference in New Issue
Block a user