Untitled

Anonymous
plain_text
04/29/2023 12:14 PM
1.1 KB
18
Indexable
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;
          }
        }
      }
    
Editor is loading...