diff --git a/src/datasource-zabbix/config.controller.js b/src/datasource-zabbix/config.controller.js index fcd77e9..fe9815f 100644 --- a/src/datasource-zabbix/config.controller.js +++ b/src/datasource-zabbix/config.controller.js @@ -2,6 +2,7 @@ import _ from 'lodash'; import { migrateDSConfig } from './migrations'; const SUPPORTED_SQL_DS = ['mysql', 'postgres', 'influxdb']; + const zabbixVersions = [ { name: '2.x', value: 2 }, { name: '3.x', value: 3 }, @@ -27,12 +28,12 @@ export class ZabbixDSConfigController { this.current.jsonData = migrateDSConfig(this.current.jsonData); _.defaults(this.current.jsonData, defaultConfig); - this.sqlDataSources = this.getSupportedSQLDataSources(); + this.dbDataSources = this.getSupportedDBDataSources(); this.zabbixVersions = _.cloneDeep(zabbixVersions); this.autoDetectZabbixVersion(); } - getSupportedSQLDataSources() { + getSupportedDBDataSources() { let datasources = this.datasourceSrv.getAll(); return _.filter(datasources, ds => { return _.includes(SUPPORTED_SQL_DS, ds.type); diff --git a/src/datasource-zabbix/partials/config.html b/src/datasource-zabbix/partials/config.html index 1530d2f..043c7c7 100644 --- a/src/datasource-zabbix/partials/config.html +++ b/src/datasource-zabbix/partials/config.html @@ -91,20 +91,20 @@ checked="ctrl.current.jsonData.dbConnectionEnable">