Browse Source

Merge pull request #84 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit 'b121e05ec2d9b7ab16888e2033d22d2772a4f33d':
  fix: DEC-10163 重命名成功后同时修改右侧标题名称, 修改h2数据连接默认url
qufenxi
alan 5 years ago
parent
commit
118cb7ea46
  1. 2
      src/modules/constants/constant.ts
  2. 3
      src/modules/pages/connection/list/list_item/list_item.model.ts

2
src/modules/constants/constant.ts

@ -543,7 +543,7 @@ export const DATA_BASE_TYPES = [
databaseType: 'other',
driver: 'org.h2.Driver',
drivers: ['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'],
url: 'jdbc:h2://hostname:port/database',
url: 'jdbc:h2://${ENV_HOME}/../database',
commonly: false,
internal: true,
type: 'other',

3
src/modules/pages/connection/list/list_item/list_item.model.ts

@ -83,6 +83,9 @@ export class ListItemModel extends Model<{
connectionId: item.connectionName === oldName ? newName : item.connectionName,
};
});
if (this.model.connectionSelected === oldName) {
this.model.connectionSelected = newName;
}
}
return re;

Loading…
Cancel
Save