From 4f48d1e7885d9cadf7aa416b68ca371a14ceae37 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 7 Jul 2024 11:40:54 +0200 Subject: [PATCH] security/etpro-telemetry - prepare for 24.7 and replace dashboard widget with minimalistic new version. [2] copy-paste issue --- .../opnsense/www/js/widgets/ETProTelemetry.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/security/etpro-telemetry/src/opnsense/www/js/widgets/ETProTelemetry.js b/security/etpro-telemetry/src/opnsense/www/js/widgets/ETProTelemetry.js index ada8b232b..66c638b4d 100644 --- a/security/etpro-telemetry/src/opnsense/www/js/widgets/ETProTelemetry.js +++ b/security/etpro-telemetry/src/opnsense/www/js/widgets/ETProTelemetry.js @@ -58,15 +58,13 @@ export default class ETProTelemetry extends BaseTableWidget { } async onMarkupRendered() { - await ajaxGet('/api/core/system/systemInformation', {}, (data, status) => { - let rows = []; - rows.push([[''], '']); - rows.push([[this.translations['sensor_status']], $('').prop('outerHTML')]); - rows.push([[this.translations['event_received']], $('').prop('outerHTML')]); - rows.push([[this.translations['last_rule_download']], $('').prop('outerHTML')]); - rows.push([[this.translations['last_heartbeat']], $('').prop('outerHTML')]); + let rows = []; + rows.push([[''], '']); + rows.push([[this.translations['sensor_status']], $('').prop('outerHTML')]); + rows.push([[this.translations['event_received']], $('').prop('outerHTML')]); + rows.push([[this.translations['last_rule_download']], $('').prop('outerHTML')]); + rows.push([[this.translations['last_heartbeat']], $('').prop('outerHTML')]); - super.updateTable('ETProTelemetry-table', rows); - }); + super.updateTable('ETProTelemetry-table', rows); } } \ No newline at end of file