Browse Source

fix: DEC-10021 修改h2数据连接默认url

qufenxi
alan 5 years ago
parent
commit
2e55726f33
  1. 2
      src/modules/constants/constant.ts
  2. 2
      src/modules/pages/connection/connection.ts

2
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',

2
src/modules/pages/connection/connection.ts

@ -24,10 +24,10 @@ export class Connection extends BI.Widget {
watch = {
connectionSelected:(name: string) => {
if (name) {
const canEdit = connectionCanEdit(this.model.connectionSelectedOne);
this.connectionTitleWidget.setText(`${name}${this.getSelectConnectionType()}`);
this.connectionEditWidget.setVisible(!!name && canEdit);
if (name) {
const hasRegistered = this.hasRegistered();
this.title.setVisible(hasRegistered);
if (!hasRegistered) {

Loading…
Cancel
Save