|
|
|
@ -7,7 +7,7 @@ import { ConnectionJdbcXtype } from './connection_jdbc/connection_jdbc';
|
|
|
|
|
import { ConnectionJndiXtype } from './connection_jndi/connection_jndi'; |
|
|
|
|
import { ConnectionPluginXtype } from './connection_plugin/connection_plugin'; |
|
|
|
|
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'; |
|
|
|
|
|
|
|
|
|
export const ConnectionXtype = 'dec.dcm.connection'; |
|
|
|
@ -26,7 +26,8 @@ export class Connection extends BI.Widget {
|
|
|
|
|
connectionSelected:(name: string) => { |
|
|
|
|
if (name) { |
|
|
|
|
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); |
|
|
|
|
const hasRegistered = this.hasRegistered(); |
|
|
|
|
this.title.setVisible(hasRegistered); |
|
|
|
|