SQL data sources: Fix configuration UI (#33110)

* fix frontend mssql/postgres

* fix frontend

Co-authored-by: Ying WANG <ying.wang@grafana.com>
This commit is contained in:
Arve Knudsen
2021-04-19 10:30:29 +02:00
committed by GitHub
parent 0c64d88d64
commit 381e4a51cd
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export class PostgresConfigCtrl {
/** @ngInject */
constructor($scope: any, datasourceSrv: DatasourceSrv) {
this.current = $scope.ctrl.current;
this.datasourceSrv = datasourceSrv;
this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full';
this.current.jsonData.tlsConfigurationMethod = this.current.jsonData.tlsConfigurationMethod || 'file-path';