Query editor: do not fetch items in problems mode

This commit is contained in:
Alexander Zobnin
2020-07-21 09:58:07 +03:00
parent 6a1145c9fc
commit fdd3b2f2e3

View File

@@ -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());
}