mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 12:33:58 +08:00
Merge branch 'master' into postgres-query-builder
This commit is contained in:
@ -7,7 +7,7 @@ export class PostgresConfigCtrl {
|
||||
datasourceSrv: any;
|
||||
showTimescaleDBHelp: boolean;
|
||||
|
||||
/** @ngInject **/
|
||||
/** @ngInject */
|
||||
constructor($scope, datasourceSrv) {
|
||||
this.datasourceSrv = datasourceSrv;
|
||||
this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full';
|
||||
@ -34,8 +34,8 @@ export class PostgresConfigCtrl {
|
||||
});
|
||||
}
|
||||
|
||||
let major = Math.trunc(version / 100);
|
||||
let minor = version % 100;
|
||||
const major = Math.trunc(version / 100);
|
||||
const minor = version % 100;
|
||||
let name = String(major);
|
||||
if (version < 1000) {
|
||||
name = String(major) + '.' + String(minor);
|
||||
|
Reference in New Issue
Block a user