SQL data sources: Fix configuration UI (#33110)

* fix frontend mssql/postgres

* fix frontend

Co-authored-by: Ying WANG <ying.wang@grafana.com>
pull/33113/head
Arve Knudsen 4 years ago committed by GitHub
parent 0c64d88d64
commit 381e4a51cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      public/app/plugins/datasource/mssql/config_ctrl.ts
  2. 1
      public/app/plugins/datasource/postgres/config_ctrl.ts

@ -16,6 +16,7 @@ export class MssqlConfigCtrl {
/** @ngInject */
constructor($scope: any) {
this.current = $scope.ctrl.current;
this.current.jsonData.encrypt = this.current.jsonData.encrypt || 'false';
this.current.jsonData.authenticationType = this.current.jsonData.authenticationType || 'SQL Server Authentication';
this.onPasswordReset = createResetHandler(this, PasswordFieldEnum.Password);

@ -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';

Loading…
Cancel
Save