Move problem query options to the datasource

This commit is contained in:
Alexander Zobnin
2020-05-07 17:51:24 +03:00
parent 7f1d4eb313
commit 80aa2e94ad
3 changed files with 158 additions and 51 deletions

View File

@@ -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;