mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 01:13:50 +08:00
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:
@ -16,6 +16,7 @@ export class MssqlConfigCtrl {
|
|||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
constructor($scope: any) {
|
constructor($scope: any) {
|
||||||
|
this.current = $scope.ctrl.current;
|
||||||
this.current.jsonData.encrypt = this.current.jsonData.encrypt || 'false';
|
this.current.jsonData.encrypt = this.current.jsonData.encrypt || 'false';
|
||||||
this.current.jsonData.authenticationType = this.current.jsonData.authenticationType || 'SQL Server Authentication';
|
this.current.jsonData.authenticationType = this.current.jsonData.authenticationType || 'SQL Server Authentication';
|
||||||
this.onPasswordReset = createResetHandler(this, PasswordFieldEnum.Password);
|
this.onPasswordReset = createResetHandler(this, PasswordFieldEnum.Password);
|
||||||
|
@ -19,6 +19,7 @@ export class PostgresConfigCtrl {
|
|||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
constructor($scope: any, datasourceSrv: DatasourceSrv) {
|
constructor($scope: any, datasourceSrv: DatasourceSrv) {
|
||||||
|
this.current = $scope.ctrl.current;
|
||||||
this.datasourceSrv = datasourceSrv;
|
this.datasourceSrv = datasourceSrv;
|
||||||
this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full';
|
this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full';
|
||||||
this.current.jsonData.tlsConfigurationMethod = this.current.jsonData.tlsConfigurationMethod || 'file-path';
|
this.current.jsonData.tlsConfigurationMethod = this.current.jsonData.tlsConfigurationMethod || 'file-path';
|
||||||
|
Reference in New Issue
Block a user