diff --git a/src/modules/constants/constant.ts b/src/modules/constants/constant.ts index 53cd989..d685117 100644 --- a/src/modules/constants/constant.ts +++ b/src/modules/constants/constant.ts @@ -275,7 +275,7 @@ export const DATA_BASE_TYPES = [ text: 'H2', databaseType: 'h2', driver: 'org.h2.Driver', - url: 'jdbc:h2://hostname:port/../database', + url: 'jdbc:h2://${ENV_HOME}/../database', commonly: false, internal: true, type: 'jdbc', diff --git a/src/modules/pages/connection/connection.ts b/src/modules/pages/connection/connection.ts index 8efc1be..aab90d6 100644 --- a/src/modules/pages/connection/connection.ts +++ b/src/modules/pages/connection/connection.ts @@ -24,10 +24,10 @@ export class Connection extends BI.Widget { watch = { connectionSelected:(name: string) => { - const canEdit = connectionCanEdit(this.model.connectionSelectedOne); - this.connectionTitleWidget.setText(`${name}(${this.getSelectConnectionType()})`); - this.connectionEditWidget.setVisible(!!name && canEdit); if (name) { + const canEdit = connectionCanEdit(this.model.connectionSelectedOne); + this.connectionTitleWidget.setText(`${name}(${this.getSelectConnectionType()})`); + this.connectionEditWidget.setVisible(!!name && canEdit); const hasRegistered = this.hasRegistered(); this.title.setVisible(hasRegistered); if (!hasRegistered) {