mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/etpro-telemetry - prepare for 24.7 and replace dashboard widget with minimalistic new version. [2] copy-paste issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user