Filter problems by time range, fix #1094

This commit is contained in:
Alexander Zobnin
2020-12-23 12:48:46 +03:00
parent 3f10be6a9d
commit 98025026f7
4 changed files with 15 additions and 6 deletions

View File

@@ -101,6 +101,7 @@ export class ZabbixQueryController extends QueryCtrl {
queryOptionsText: string;
metric: any;
showQueryOptions: boolean;
oldTarget: any;
/** @ngInject */
constructor($scope, $injector, $rootScope, $sce, templateSrv) {
@@ -370,9 +371,6 @@ export class ZabbixQueryController extends QueryCtrl {
this.targetChanged();
}
}
oldTarget(oldTarget: any, target: any) {
throw new Error("Method not implemented.");
}
onVariableChange() {
if (this.isContainsVariables()) {
@@ -405,7 +403,7 @@ export class ZabbixQueryController extends QueryCtrl {
targetChanged() {
this.initFilters();
this.parseTarget();
this.panelCtrl.refresh();
this.refresh();
}
addFunction(funcDef) {
@@ -466,6 +464,7 @@ export class ZabbixQueryController extends QueryCtrl {
hostsInMaintenance: "Show hosts in maintenance",
limit: "Limit problems",
hostProxy: "Show proxy",
useTimeRange: "Use time range",
};
let optionsMap = {};