diff --git a/src/datasource-zabbix/datasource.ts b/src/datasource-zabbix/datasource.ts index 178c290..ec1a224 100644 --- a/src/datasource-zabbix/datasource.ts +++ b/src/datasource-zabbix/datasource.ts @@ -398,9 +398,9 @@ export class ZabbixDatasource { let showAckButton = true; // const showEvents = this.panel.showEvents.value; - const showEvents = target.showEvents?.value || 1; + const showEvents = target.options.showEvents?.value || 1; // const showProxy = this.panel.hostProxy; - const showProxy = target.hostProxy; + const showProxy = target.options.hostProxy; const getProxiesPromise = showProxy ? this.zabbix.getProxies() : () => []; showAckButton = !this.disableReadOnlyUsersAck || userIsEditor; diff --git a/src/datasource-zabbix/partials/query.editor.html b/src/datasource-zabbix/partials/query.editor.html index 14487b6..ff6d4c6 100644 --- a/src/datasource-zabbix/partials/query.editor.html +++ b/src/datasource-zabbix/partials/query.editor.html @@ -12,7 +12,7 @@