|
|
@ -7,7 +7,7 @@ import { ConnectionJdbcXtype } from './connection_jdbc/connection_jdbc'; |
|
|
|
import { ConnectionJndiXtype } from './connection_jndi/connection_jndi'; |
|
|
|
import { ConnectionJndiXtype } from './connection_jndi/connection_jndi'; |
|
|
|
import { ConnectionPluginXtype } from './connection_plugin/connection_plugin'; |
|
|
|
import { ConnectionPluginXtype } from './connection_plugin/connection_plugin'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { connectionType } from '@constants/env'; |
|
|
|
import { getAllDatabaseTypes, connectionCanEdit, getJdbcDatabaseType } from '../../app.service'; |
|
|
|
import { getAllDatabaseTypes, connectionCanEdit, getJdbcDatabaseType, getTextByDatabaseType } from '../../app.service'; |
|
|
|
import { ConnectionJDBC } from '../../crud/crud.typings'; |
|
|
|
import { ConnectionJDBC } from '../../crud/crud.typings'; |
|
|
|
|
|
|
|
|
|
|
|
export const ConnectionXtype = 'dec.dcm.connection'; |
|
|
|
export const ConnectionXtype = 'dec.dcm.connection'; |
|
|
@ -26,7 +26,8 @@ export class Connection extends BI.Widget { |
|
|
|
connectionSelected:(name: string) => { |
|
|
|
connectionSelected:(name: string) => { |
|
|
|
if (name) { |
|
|
|
if (name) { |
|
|
|
const canEdit = connectionCanEdit(this.model.connectionSelectedOne); |
|
|
|
const canEdit = connectionCanEdit(this.model.connectionSelectedOne); |
|
|
|
this.connectionTitleWidget.setText(`${name}(${this.getSelectConnectionType()})`); |
|
|
|
const type = this.getSelectConnectionType(); |
|
|
|
|
|
|
|
this.connectionTitleWidget.setText(`${name}(${getTextByDatabaseType(type)})`); |
|
|
|
this.connectionEditWidget.setVisible(canEdit); |
|
|
|
this.connectionEditWidget.setVisible(canEdit); |
|
|
|
const hasRegistered = this.hasRegistered(); |
|
|
|
const hasRegistered = this.hasRegistered(); |
|
|
|
this.title.setVisible(hasRegistered); |
|
|
|
this.title.setVisible(hasRegistered); |
|
|
|