From fdd3b2f2e32a316d2a99c59c9c4ee4130f67aaa7 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 21 Jul 2020 09:58:07 +0300 Subject: [PATCH] Query editor: do not fetch items in problems mode --- src/datasource-zabbix/query.controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/datasource-zabbix/query.controller.ts b/src/datasource-zabbix/query.controller.ts index c7c3f68..3efe107 100644 --- a/src/datasource-zabbix/query.controller.ts +++ b/src/datasource-zabbix/query.controller.ts @@ -258,9 +258,12 @@ export class ZabbixQueryController extends QueryCtrl { this.suggestGroups(), this.suggestHosts(), this.suggestApps(), - this.suggestItems(itemtype), ]; + if (this.target.queryType === c.MODE_METRICS || this.target.queryType === c.MODE_TEXT) { + promises.push(this.suggestItems(itemtype)); + } + if (this.target.queryType === c.MODE_PROBLEMS) { promises.push(this.suggestProxies()); }