|
|
|
@ -1014,7 +1014,6 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
this.form.sshIp = _ref; |
|
|
|
|
}, |
|
|
|
|
watermark: BI.i18nText('Dec-Dcm_Connection_Form_Host'), |
|
|
|
|
allowBlank: false, |
|
|
|
|
value: sshIp, |
|
|
|
|
listeners: [ |
|
|
|
|
{ |
|
|
|
@ -1651,7 +1650,7 @@ export class FormJdbc extends BI.Widget {
|
|
|
|
|
|
|
|
|
|
public validation(): boolean { |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|