diff --git a/src/datasource-zabbix/config.controller.js b/src/datasource-zabbix/config.controller.js index 342c4f0..926d5b0 100644 --- a/src/datasource-zabbix/config.controller.js +++ b/src/datasource-zabbix/config.controller.js @@ -29,9 +29,7 @@ export class ZabbixDSConfigController { this.current.jsonData = migrateDSConfig(this.current.jsonData); _.defaults(this.current.jsonData, defaultConfig); - this.dbConnectionEnable = this.current.jsonData.dbConnectionEnable; this.dbConnectionDatasourceId = this.current.jsonData.dbConnectionDatasourceId; - this.dbDataSources = this.getSupportedDBDataSources(); this.zabbixVersions = _.cloneDeep(zabbixVersions); this.autoDetectZabbixVersion(); @@ -81,4 +79,8 @@ export class ZabbixDSConfigController { } }); } + + onDBConnectionDatasourceChange() { + this.current.jsonData.dbConnectionDatasourceId = this.dbConnectionDatasourceId; + } } diff --git a/src/datasource-zabbix/partials/config.html b/src/datasource-zabbix/partials/config.html index 2ca3538..6b389f3 100644 --- a/src/datasource-zabbix/partials/config.html +++ b/src/datasource-zabbix/partials/config.html @@ -88,9 +88,9 @@