awf-test-lib 0.1.17 → 0.1.18
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/shared/contact-support/contact-support.component.mjs +10 -2
- package/fesm2015/awf-test-lib.mjs +9 -1
- package/fesm2015/awf-test-lib.mjs.map +1 -1
- package/fesm2020/awf-test-lib.mjs +9 -1
- package/fesm2020/awf-test-lib.mjs.map +1 -1
- package/lib/shared/contact-support/contact-support.component.d.ts +1 -0
- package/package.json +1 -1
@@ -822,7 +822,7 @@ class ContactSupportComponent {
|
|
822
822
|
this.form = this.formBuilder.group({
|
823
823
|
name: [name !== 'null' ? name : '', [Validators.required, Validators.minLength(3)]],
|
824
824
|
email: [email !== 'null' ? email : '', [Validators.required, Validators.email]],
|
825
|
-
phone: [phone
|
825
|
+
phone: [this.checkPhone(phone) ? phone : '', [Validators.required]],
|
826
826
|
extentionOrComment: [''],
|
827
827
|
reason: [{ value: '' }, [Validators.required]],
|
828
828
|
system: [{ value: this.detailedPmJob.systemName + ' ' + this.detailedPmJob.systemId, disabled: true }, [Validators.required]],
|
@@ -830,6 +830,14 @@ class ContactSupportComponent {
|
|
830
830
|
message: ['', (this.reasonContact === ReasonContact.MoreDatesFormPm) ? [] : [Validators.required, Validators.minLength(15)]],
|
831
831
|
});
|
832
832
|
}
|
833
|
+
checkPhone(phone) {
|
834
|
+
if (phone == null || phone == 'null' || phone == undefined || phone.length == 0) {
|
835
|
+
return false;
|
836
|
+
}
|
837
|
+
else {
|
838
|
+
return true;
|
839
|
+
}
|
840
|
+
}
|
833
841
|
contacted() {
|
834
842
|
this.sendContactMeEmailMethode();
|
835
843
|
}
|