--- a/www/js/mon_node.js Sat Dec 14 21:04:47 2019 +0100 +++ b/www/js/mon_node.js Sun Dec 15 15:08:09 2019 +0100 @@ -30,7 +30,7 @@ { name: 'record', type: 'int' }, { name: 'uuid', type: 'string' }, { name: 'node', type: 'string' }, - { name: 'online', type: 'bool' }, + { name: 'online', type: 'int' }, { name: 'group_id', type: 'string' }, { name: 'hardwaremake', type: 'string' }, { name: 'hardwaremodel', type: 'string' }, @@ -54,13 +54,14 @@ }, dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function(records) { + var oline = (record.online) ? 'On-line' : 'Off-line'; var record = dataAdapter.records[0], html = '<div id="node_table">'; html += '<table style="width: 100%; padding: 10px;">'; html += '<tr><th colspan=2>Systeem overzicht</th></tr>'; html += '<tr><td>Uuid</td><td>' + record.uuid + '</td></tr>'; html += '<tr><td>Systeem</td><td>' + record.node + '</td></tr>'; - html += '<tr><td>Online</td><td>' + record.online + '</td></tr>'; + html += '<tr><td>Online</td><td>' + oline + '</td></tr>'; html += '<tr><td>Type</td><td>' + record.group_id + '</td></tr>'; html += '<tr><td>Eerst gezien</td><td>' + record.firstseen + '</td></tr>'; html += '<tr><td>Laatst gezien</td><td>' + record.lastseen + '</td></tr>';