|
|
|
@ -24,10 +24,10 @@ export class Connection extends BI.Widget {
|
|
|
|
|
|
|
|
|
|
watch = { |
|
|
|
|
connectionSelected:(name: string) => { |
|
|
|
|
const canEdit = connectionCanEdit(this.model.connectionSelectedOne); |
|
|
|
|
this.connectionTitleWidget.setText(`${name}(${this.getSelectConnectionType()})`); |
|
|
|
|
this.connectionEditWidget.setVisible(!!name && canEdit); |
|
|
|
|
if (name) { |
|
|
|
|
const canEdit = connectionCanEdit(this.model.connectionSelectedOne); |
|
|
|
|
this.connectionTitleWidget.setText(`${name}(${this.getSelectConnectionType()})`); |
|
|
|
|
this.connectionEditWidget.setVisible(!!name && canEdit); |
|
|
|
|
const hasRegistered = this.hasRegistered(); |
|
|
|
|
this.title.setVisible(hasRegistered); |
|
|
|
|
if (!hasRegistered) { |
|
|
|
|