Browse Source

Merge pull request #8164 in DEC/decision-webui-dcm from bugfix/11.0 to feature/x

* commit 'dcf63642e7a464aa3c9b000c40a204782d4e87ea':
  REPORT-105428 fix: 移除SSH主机校验
  REPORT-105428 fix: 移除SSH主机校验
feature/x
superman 1 year ago
parent
commit
ef5da7acbf
  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; 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;
} }

Loading…
Cancel
Save