Implements proposal #597

This commit is contained in:
g-goessel
2018-07-23 12:15:51 +02:00
committed by GOESSEL Guillaume
parent b96e09cd1c
commit 9cfb7e210a
9 changed files with 16 additions and 22 deletions

View File

@@ -244,9 +244,8 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
this.disableReadOnlyUsersAck = jsonData.disableReadOnlyUsersAck;
// Direct DB Connection options
var dbConnectionOptions = jsonData.dbConnection || {};
this.enableDirectDBConnection = dbConnectionOptions.enable;
this.sqlDatasourceId = dbConnectionOptions.datasourceId;
this.enableDirectDBConnection = jsonData.dbConnectionEnable || false;
this.sqlDatasourceId = jsonData.dbConnectionDatasourceId;
var zabbixOptions = {
username: this.username,