You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
621 B
19 lines
621 B
import { shortcut, store } from '@core/core'; |
|
import { ConnectionPluginModel } from './connection_plugin.model'; |
|
import { getPluginWidgetShow } from 'src/modules/app.service'; |
|
@shortcut() |
|
@store(ConnectionPluginModel) |
|
export class ConnectionPlugin extends BI.Widget { |
|
static xtype = 'dec.dcm.connection_plugin'; |
|
|
|
model: ConnectionPluginModel['model']; |
|
|
|
render () { |
|
const databaseType = this.model.connectionSelectedOne.connectionType; |
|
|
|
return { |
|
type: getPluginWidgetShow(databaseType), |
|
value: this.model.connectionSelectedOne.connectionData, |
|
}; |
|
} |
|
}
|
|
|