refs #4974 Config default branches and datasources
This commit is contained in:
parent
c863737092
commit
d7984bd915
12
src/main.js
12
src/main.js
|
@ -79,7 +79,8 @@ var App = {
|
|||
'SELECT dsName FROM TblConfig',
|
||||
'dsName', String
|
||||
);
|
||||
this.dsName = mdbDsName || Conf.defaultDatasource;
|
||||
var userDefaultDatasource = this.regRead(Conf.regPath, 'defaultDatasource');
|
||||
this.dsName = mdbDsName || userDefaultDatasource || Conf.defaultDatasource;
|
||||
|
||||
// Creates the necessary registry entries
|
||||
var lastVersion = this.regRead(Conf.regPath, 'lastExecutedVersion');
|
||||
|
@ -145,9 +146,12 @@ var App = {
|
|||
var branch = this.mdbGetValue(
|
||||
'SELECT branch FROM tblVariables',
|
||||
'branch', String
|
||||
);
|
||||
if (!branch)
|
||||
branch = Conf.defaultBranch;
|
||||
);
|
||||
|
||||
if (!branch) {
|
||||
userDefaultBranch = this.regRead(Conf.regPath, 'defaultBranch');
|
||||
branch = userDefaultBranch || Conf.defaultBranch;
|
||||
}
|
||||
this.$('branch').value = branch;
|
||||
this.onChangeBranch();
|
||||
|
||||
|
|
Loading…
Reference in New Issue