mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/etpro-telemetry: Fix widget (#4128)
The API returns "sensor_status":"ACTIVE", which is upper case. The widget logic compares it to "active", which makes the widget fail to show any data. Converting "ACTIVE" to lower case solves that issue.
This commit is contained in:
@@ -43,7 +43,7 @@ export default class ETProTelemetry extends BaseTableWidget {
|
||||
|
||||
async onWidgetTick() {
|
||||
const data = await this.ajaxCall('/api/diagnostics/proofpoint_et/status');
|
||||
if (data['sensor_status'] == 'active') {
|
||||
if (data['sensor_status'].toLowerCase() == 'active') {
|
||||
$('#etpro_sensor_status').text(data['sensor_status']);
|
||||
$('#etpro_event_received').text(data['event_received']);
|
||||
$('#etpro_last_rule_download').text(data['last_rule_download']);
|
||||
|
||||
Reference in New Issue
Block a user