|
|
@ -2,7 +2,7 @@ import { shortcut, store } from '@core/core'; |
|
|
|
import { CenterAdapt, Label, Layout, Vtape, Loader, Tab } from 'ui'; |
|
|
|
import { CenterAdapt, Label, Layout, Vtape, Loader, Tab } from 'ui'; |
|
|
|
import { ListItemXtype } from './list_item/list_item'; |
|
|
|
import { ListItemXtype } from './list_item/list_item'; |
|
|
|
import { ConnectionListModel, ConnectionListModelXtype } from './list.model'; |
|
|
|
import { ConnectionListModel, ConnectionListModelXtype } from './list.model'; |
|
|
|
import { getCreator, getDatabaseType } from './list.service'; |
|
|
|
import { getDatabaseType } from './list.service'; |
|
|
|
export const ConnectionListXtype = 'dec.dcm.connection.list'; |
|
|
|
export const ConnectionListXtype = 'dec.dcm.connection.list'; |
|
|
|
@shortcut(ConnectionListXtype) |
|
|
|
@shortcut(ConnectionListXtype) |
|
|
|
@store(ConnectionListModelXtype) |
|
|
|
@store(ConnectionListModelXtype) |
|
|
@ -86,7 +86,7 @@ export class ConnectionList extends BI.LoadingPane { |
|
|
|
type: ListItemXtype, |
|
|
|
type: ListItemXtype, |
|
|
|
name: item.connectionName, |
|
|
|
name: item.connectionName, |
|
|
|
value: item.connectionName, |
|
|
|
value: item.connectionName, |
|
|
|
creator: getCreator(item), |
|
|
|
creator: item.creator, |
|
|
|
databaseType: getDatabaseType(item), |
|
|
|
databaseType: getDatabaseType(item), |
|
|
|
selected: this.model.connectionSelected ? this.model.connectionSelected === item.connectionName : index === 0, |
|
|
|
selected: this.model.connectionSelected ? this.model.connectionSelected === item.connectionName : index === 0, |
|
|
|
}; |
|
|
|
}; |
|
|
|