diff --git a/src/datasource-zabbix/datasource.ts b/src/datasource-zabbix/datasource.ts index 640c810..2d6cb08 100644 --- a/src/datasource-zabbix/datasource.ts +++ b/src/datasource-zabbix/datasource.ts @@ -453,7 +453,7 @@ export class ZabbixDatasource extends DataSourceApi; - if (showProblems === ShowProblemTypes.History) { + if (showProblems === ShowProblemTypes.History || target.options?.useTimeRange) { problemsOptions.timeFrom = timeFrom; problemsOptions.timeTo = timeTo; getProblemsPromise = this.zabbix.getProblemsHistory(groupFilter, hostFilter, appFilter, proxyFilter, problemsOptions); diff --git a/src/datasource-zabbix/partials/query.editor.html b/src/datasource-zabbix/partials/query.editor.html index f01affb..1679ba6 100644 --- a/src/datasource-zabbix/partials/query.editor.html +++ b/src/datasource-zabbix/partials/query.editor.html @@ -334,6 +334,12 @@ + +