security/etpro-telemetry - prepare for 24.7 and replace dashboard widget with minimalistic new version. [2] copy-paste issue

This commit is contained in:
Ad Schellevis
2024-07-07 11:40:54 +02:00
parent a422c8c6b3
commit 4f48d1e788
@@ -58,15 +58,13 @@ export default class ETProTelemetry extends BaseTableWidget {
}
async onMarkupRendered() {
await ajaxGet('/api/core/system/systemInformation', {}, (data, status) => {
let rows = [];
rows.push([['<img src="/ui/img/proofpoint.svg" style="height:30px;" class="image_invertible">'], '']);
rows.push([[this.translations['sensor_status']], $('<span id="etpro_sensor_status">').prop('outerHTML')]);
rows.push([[this.translations['event_received']], $('<span id="etpro_event_received">').prop('outerHTML')]);
rows.push([[this.translations['last_rule_download']], $('<span id="etpro_last_rule_download">').prop('outerHTML')]);
rows.push([[this.translations['last_heartbeat']], $('<span id="etpro_last_heartbeat">').prop('outerHTML')]);
let rows = [];
rows.push([['<img src="/ui/img/proofpoint.svg" style="height:30px;" class="image_invertible">'], '']);
rows.push([[this.translations['sensor_status']], $('<span id="etpro_sensor_status">').prop('outerHTML')]);
rows.push([[this.translations['event_received']], $('<span id="etpro_event_received">').prop('outerHTML')]);
rows.push([[this.translations['last_rule_download']], $('<span id="etpro_last_rule_download">').prop('outerHTML')]);
rows.push([[this.translations['last_heartbeat']], $('<span id="etpro_last_heartbeat">').prop('outerHTML')]);
super.updateTable('ETProTelemetry-table', rows);
});
super.updateTable('ETProTelemetry-table', rows);
}
}