awf-test-lib 0.0.52 → 0.0.70
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 +2 -4
- package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +7 -42
- package/fesm2015/awf-test-lib.mjs +7 -44
- package/fesm2015/awf-test-lib.mjs.map +1 -1
- package/fesm2020/awf-test-lib.mjs +7 -44
- package/fesm2020/awf-test-lib.mjs.map +1 -1
- package/package.json +1 -1
@@ -733,12 +733,10 @@ class ContactSupportComponent {
|
|
733
733
|
this.displayNumber = false;
|
734
734
|
}
|
735
735
|
sendContactMeEmailMethode() {
|
736
|
-
console.log(this.form.value.reason);
|
737
|
-
console.log(this.reasonContact);
|
738
736
|
this.detailedPmJob.name = this.form.value.name;
|
739
737
|
this.detailedPmJob.phone = this.form.value.phone;
|
740
738
|
this.detailedPmJob.email = this.form.value.email;
|
741
|
-
this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].
|
739
|
+
this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].name : this.form.value.reason.name;
|
742
740
|
this.detailedPmJob.comment = this.form.value.message;
|
743
741
|
this.detailedPmJob.reasonContact = this.reasonContact;
|
744
742
|
this.detailedPmJob.futureStatus = this.slectsFutureStatus(this.form.value.reason.code);
|
@@ -952,6 +950,7 @@ class MaintenanceListComponent {
|
|
952
950
|
this.reasonContact = "";
|
953
951
|
}
|
954
952
|
ngOnChanges(changes) {
|
953
|
+
console.log("hello");
|
955
954
|
}
|
956
955
|
ngOnDestroy() {
|
957
956
|
if (this.updatePmSubscription) {
|
@@ -1032,53 +1031,18 @@ class MaintenanceListComponent {
|
|
1032
1031
|
closeConfirmDialogContact(confirm) {
|
1033
1032
|
this.displayConfirmDialogContact = false;
|
1034
1033
|
if (confirm) {
|
1035
|
-
console.log("hello world");
|
1036
1034
|
this.emailTypes = [];
|
1037
|
-
if (this.
|
1038
|
-
this.
|
1039
|
-
this.
|
1040
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1041
|
-
this.emailTypes.push(EmailType.SendNewDates_Clients);
|
1042
|
-
this.emailTypes.push(EmailType.SendNewDates_CSC);
|
1043
|
-
}
|
1044
|
-
else if (this.maintenanceSelected.reason === "RPM") {
|
1045
|
-
this.maintenanceSelected.pmJob.customObject = {};
|
1046
|
-
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
1047
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1048
|
-
this.emailTypes.push(EmailType.ReportDate_Clients);
|
1049
|
-
this.emailTypes.push(EmailType.ReportDate_CSC);
|
1035
|
+
if (this.reasonContact === ReasonContact.ContactFormPm) {
|
1036
|
+
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1037
|
+
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1050
1038
|
}
|
1051
|
-
else if (this.
|
1039
|
+
else if (this.reasonContact === ReasonContact.CancelFormPm) {
|
1052
1040
|
this.maintenanceSelected.pmJob.customObject = {};
|
1053
1041
|
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
1054
1042
|
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1055
|
-
this.emailTypes.push(EmailType.CancelPM_Clients);
|
1056
|
-
this.emailTypes.push(EmailType.CancelPM_CSC);
|
1057
|
-
}
|
1058
|
-
else if (this.maintenanceSelected.reason === "SDI") {
|
1059
|
-
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1060
|
-
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1061
|
-
}
|
1062
|
-
else if (this.maintenanceSelected.reason === "OTH") {
|
1063
|
-
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1064
|
-
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1065
|
-
}
|
1066
|
-
/*if(this.reasonContact === ReasonContact.ContactFormPm )
|
1067
|
-
{
|
1068
|
-
|
1069
|
-
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1070
|
-
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1071
|
-
|
1072
|
-
}
|
1073
|
-
else if(this.reasonContact === ReasonContact.CancelFormPm )
|
1074
|
-
{
|
1075
|
-
this.maintenanceSelected.pmJob.customObject= {};
|
1076
|
-
this.maintenanceSelected.pmJob.customObject.customerWaiting =StingBoolean.YES ;
|
1077
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING ;
|
1078
1043
|
this.emailTypes.push(EmailType.CancelPM_CSC);
|
1079
1044
|
this.emailTypes.push(EmailType.CancelPM_Clients);
|
1080
|
-
|
1081
|
-
}*/
|
1045
|
+
}
|
1082
1046
|
else {
|
1083
1047
|
this.maintenanceSelected.pmJob.customObject = {};
|
1084
1048
|
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
@@ -1111,7 +1075,6 @@ class MaintenanceListComponent {
|
|
1111
1075
|
this.callApiToUpdate();
|
1112
1076
|
}
|
1113
1077
|
closeContactSupport(event) {
|
1114
|
-
console.log("hello world");
|
1115
1078
|
this.displaycontactSupport = false;
|
1116
1079
|
this.showDate = false;
|
1117
1080
|
this.reasonContact = "";
|