|
|
|
@ -25,7 +25,7 @@ export class Maintain extends BI.Widget {
|
|
|
|
|
render() { |
|
|
|
|
const { isEdit, databaseType } = this.getEditConnection(); |
|
|
|
|
const titleText = getTextByDatabaseType(databaseType); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: BI.VTapeLayout.xtype, |
|
|
|
|
hgap: 5, |
|
|
|
@ -82,12 +82,13 @@ export class Maintain extends BI.Widget {
|
|
|
|
|
this.socketTip.setVisible(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
api.setEditedConnectionStatus(this.model.connectionSelectedOne.connectionName); |
|
|
|
|
this.model.connectionSelectedOne |
|
|
|
|
&& api.setEditedConnectionStatus(this.model.connectionSelectedOne.connectionName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private renderItems() { |
|
|
|
|
const { type } = this.getEditConnection(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return [{ |
|
|
|
|
type: MaintainForm.xtype, |
|
|
|
|
connectionType: type, |
|
|
|
@ -108,7 +109,7 @@ export class Maintain extends BI.Widget {
|
|
|
|
|
const connectionJDBC = this.model.connectionSelectedOne.connectionData as ConnectionJDBC; |
|
|
|
|
databaseType = getJdbcDatabaseType(connectionJDBC.database, connectionJDBC.driver).databaseType; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: this.model.connectionSelectedOne.connectionType, |
|
|
|
|
text: this.model.connectionSelectedOne.connectionName, |
|
|
|
|