diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index dc188d8..0be47ff 100644 --- a/src/modules/constants/constant.ts +++ b/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', diff --git a/src/modules/pages/connection/list/list_item/list_item.model.ts b/src/modules/pages/connection/list/list_item/list_item.model.ts index da9924c..1e5ab05 100644 --- a/src/modules/pages/connection/list/list_item/list_item.model.ts +++ b/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;