mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
GraphQl 0.2.17.6 - pagination fix
This commit is contained in:
@@ -530,9 +530,13 @@ function initializeDatatable (status) {
|
|||||||
"dataSrc": function (json) {
|
"dataSrc": function (json) {
|
||||||
console.log(json);
|
console.log(json);
|
||||||
|
|
||||||
|
// Set the total number of records for pagination
|
||||||
|
json.recordsTotal = json.devices.count || 0;
|
||||||
|
json.recordsFiltered = json.devices.count || 0;
|
||||||
|
|
||||||
return json.devices.devices.map(device => {
|
return json.devices.devices.map(device => {
|
||||||
// Convert each device record into the required DataTable row format
|
// Convert each device record into the required DataTable row format
|
||||||
// Order has to be teh same as in the UI_device_columns setting options
|
// Order has to be the same as in the UI_device_columns setting options
|
||||||
const originalRow = [
|
const originalRow = [
|
||||||
device.devName || "",
|
device.devName || "",
|
||||||
device.devOwner || "",
|
device.devOwner || "",
|
||||||
|
|||||||
Reference in New Issue
Block a user