Untitled
unknown
plain_text
a year ago
1.1 kB
1
Indexable
Never
function checkValidity() { if (this.recordName == "WebServices") { //Enable is empty if (this.initParamForm.value["webservices.enable"] === this.webservicesEnable) { this.toastr.error(this.translateService.instant("webservicesEnableEmpty")); return false; } else if ( this.initParamForm.value["webservices.enable"] !== "Y" || this.initParamForm.value["webservices.enable"] !== "N" || this.initParamForm.value["webservices.enable"] !== "y" || this.initParamForm.value["webservices.enable"] !== "n" ) { this.toastr.error(this.translateService.instant("webservicesEnableIncorrectValue")); return false; }; const PORT = parseInt(this.initParamForm.value["webservices.port"]); if (isNan(PORT)) { this.toastr.error(this.translateService.instant("webservicesPortIncorrectValue")); return false; } else if (PORT === this.webservicesPort) { this.toastr.error(this.translateService.instant("webservicesPortEmpty")); return false; }; return true; } }