Browse Source

REPORT-105428 fix: 移除SSH主机校验

final/11.0
Austin.Duan 1 year ago
parent
commit
0a269508c3
  1. 3
      src/modules/pages/maintain/forms/components/form.jdbc.ts

3
src/modules/pages/maintain/forms/components/form.jdbc.ts

@ -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;
}

Loading…
Cancel
Save