@lowcodeunit/applications-flow-common 1.39.64-exceptions → 1.39.65-exceptions
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/controls/processor-details-form/processor-details-form.component.mjs +9 -10
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +10 -11
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +8 -9
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
@@ -5061,26 +5061,25 @@ class ProcessorDetailsFormComponent {
|
|
5061
5061
|
// console.log("lcu type changed: ", this.ProcessorDetailsFormGroup.controls)
|
5062
5062
|
}
|
5063
5063
|
VerifyRedirect() {
|
5064
|
-
console.log('called');
|
5065
5064
|
let regex = new RegExp('^(HTTPS://)', 'i');
|
5066
5065
|
let redirect = this.RedirectFormControl.value;
|
5067
|
-
console.log('reg ex match; ', redirect.match(regex));
|
5068
|
-
// let redirectSub = redirect.substring(0,8).toLowerCase();
|
5066
|
+
// console.log('reg ex match; ', redirect.match(regex));
|
5069
5067
|
if (this.IncludeRequestFormControl.value && !redirect.match(regex)) {
|
5070
5068
|
this.RedirectError =
|
5071
5069
|
'Redirect url must begin with https:// when Include Path and Query is toggled';
|
5072
|
-
|
5073
|
-
this.IncludeRequestFormControl.addValidators(Validators.pattern(regex));
|
5074
|
-
console.log(this.ProcessorDetailsFormGroup);
|
5070
|
+
this.IncludeRequestFormControl.setErrors({ incorrect: true });
|
5075
5071
|
}
|
5076
5072
|
else if (this.IncludeRequestFormControl.value &&
|
5077
5073
|
redirect.match(regex)) {
|
5078
|
-
console.log('no error');
|
5079
5074
|
this.RedirectError = null;
|
5075
|
+
this.IncludeRequestFormControl.setErrors(null);
|
5080
5076
|
}
|
5081
5077
|
else if (!this.IncludeRequestFormControl.value) {
|
5082
|
-
this.
|
5078
|
+
this.RedirectError = null;
|
5079
|
+
// this.IncludeRequestFormControl.setErrors(null);
|
5083
5080
|
}
|
5081
|
+
// console.log("request ", this.IncludeRequestFormControl);
|
5082
|
+
// console.log("form: ", this.ProcessorDetailsFormGroup);
|
5084
5083
|
}
|
5085
5084
|
//HELPERS
|
5086
5085
|
cleanupLcuTypeSubForm() {
|
@@ -5214,7 +5213,7 @@ class ProcessorDetailsFormComponent {
|
|
5214
5213
|
this.ProcessorDetailsFormGroup.addControl('redirect', this.formBldr.control(this.EditingApplication.Processor?.Redirect || '', [Validators.required]));
|
5215
5214
|
this.ProcessorDetailsFormGroup.addControl('permanent', this.formBldr.control(this.EditingApplication.Processor?.Permanent || false, []));
|
5216
5215
|
this.ProcessorDetailsFormGroup.addControl('preserveMethod', this.formBldr.control(this.EditingApplication.Processor?.PreserveMethod || false, []));
|
5217
|
-
console.log('include request: ', this.EditingApplication?.Processor);
|
5216
|
+
// console.log('include request: ', this.EditingApplication?.Processor);
|
5218
5217
|
this.ProcessorDetailsFormGroup.addControl('includeRequest', this.formBldr.control(this.EditingApplication?.Processor?.IncludeRequest || false, []));
|
5219
5218
|
this.DetermineTooltipText();
|
5220
5219
|
}
|