|
|
@ -1014,7 +1014,6 @@ export class FormJdbc extends BI.Widget { |
|
|
|
this.form.sshIp = _ref; |
|
|
|
this.form.sshIp = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'), |
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'), |
|
|
|
allowBlank: false, |
|
|
|
|
|
|
|
value: sshIp, |
|
|
|
value: sshIp, |
|
|
|
listeners: [ |
|
|
|
listeners: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1651,7 +1650,7 @@ export class FormJdbc extends BI.Widget { |
|
|
|
|
|
|
|
|
|
|
|
public validation(): boolean { |
|
|
|
public validation(): boolean { |
|
|
|
const driver = this.form.driver.validation(); |
|
|
|
const driver = this.form.driver.validation(); |
|
|
|
const sshSet = !this.form.usingSsh.isSelected() || (this.form.sshIp.getValue() !== '' && this.form.sshPort.getValue() !== ''); |
|
|
|
const sshSet = !this.form.usingSsh.isSelected() || BI.isNotEmptyString(this.form.sshPort.getValue()); |
|
|
|
|
|
|
|
|
|
|
|
return driver && sshSet; |
|
|
|
return driver && sshSet; |
|
|
|
} |
|
|
|
} |
|
|
|