improve description for timescaledb option

This commit is contained in:
Sven Klemm
2018-08-27 23:20:17 +02:00
parent 7177f19436
commit 62d82920e6
2 changed files with 22 additions and 1 deletions

View File

@ -5,12 +5,14 @@ export class PostgresConfigCtrl {
current: any;
datasourceSrv: any;
showTimescaleDBHelp: boolean;
/** @ngInject **/
constructor($scope, datasourceSrv) {
this.datasourceSrv = datasourceSrv;
this.current.jsonData.sslmode = this.current.jsonData.sslmode || 'verify-full';
this.current.jsonData.postgresVersion = this.current.jsonData.postgresVersion || 903;
this.showTimescaleDBHelp = false;
this.autoDetectFeatures();
}
@ -46,6 +48,10 @@ export class PostgresConfigCtrl {
});
}
toggleTimescaleDBHelp() {
this.showTimescaleDBHelp = !this.showTimescaleDBHelp;
}
// the value portion is derived from postgres server_version_num/100
postgresVersions = [
{ name: '9.3', value: 903 },