|
|
|
@ -16,7 +16,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
creator: '', |
|
|
|
|
databaseType: '', |
|
|
|
|
height: 25, |
|
|
|
|
baseCls: 'dec-dcm-connection-list-item bi-list-item-active', |
|
|
|
|
baseCls: 'dec-dcm-connection-list-item bi-list-item-active2', |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
store: ListItemModel['store']; |
|
|
|
@ -39,7 +39,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
const { name, databaseType } = this.options; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: Htape, |
|
|
|
|
items: [{ |
|
|
|
@ -80,7 +80,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
this.store.setIsEdit(false, name); |
|
|
|
|
this.nameLabel.setText(name); |
|
|
|
|
this.nameEditor.setValue(name); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.store.changeName(name, newName).then(re => { |
|
|
|
@ -124,10 +124,10 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
this.downListCombo.setValue(''); |
|
|
|
|
}, |
|
|
|
|
}], |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} : { |
|
|
|
|
type: Layout, |
|
|
|
|
}, |
|
|
|
|
type: Layout, |
|
|
|
|
}, |
|
|
|
|
width: 25, |
|
|
|
|
}], |
|
|
|
|
}; |
|
|
|
@ -153,7 +153,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
if (!isRegistered) { |
|
|
|
|
return [otherIcons]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return [ |
|
|
|
|
[ |
|
|
|
|
{ |
|
|
|
@ -211,7 +211,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
this.store.setPageIndex(PAGE_INDEX.MAINTAIN); |
|
|
|
|
this.store.setDatebaseTypeSelected(''); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
.catch(() => { }); |
|
|
|
|
}, |
|
|
|
|
changeName: () => { |
|
|
|
|
this.store.setIsEdit(true, name); |
|
|
|
|