Query editor: do not fetch items in problems mode
This commit is contained in:
@@ -258,9 +258,12 @@ export class ZabbixQueryController extends QueryCtrl {
|
|||||||
this.suggestGroups(),
|
this.suggestGroups(),
|
||||||
this.suggestHosts(),
|
this.suggestHosts(),
|
||||||
this.suggestApps(),
|
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) {
|
if (this.target.queryType === c.MODE_PROBLEMS) {
|
||||||
promises.push(this.suggestProxies());
|
promises.push(this.suggestProxies());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user