-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from stephancj/dev
feat(contact): added sending aknowlegnment receipt and updated data
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -678,7 +678,7 @@ const app = Vue.createApp({ | |
phone2: "(+261) 32 84 688 57", | ||
emailLabel: { en: "Email", fr: "Email" }, | ||
email1: "[email protected]", | ||
email2: "[email protected]", | ||
email2: "", | ||
|
||
form: { | ||
customerNameLabel: { en: "Name", fr: "Nom" }, | ||
|
@@ -1000,6 +1000,11 @@ const app = Vue.createApp({ | |
} | ||
}, | ||
|
||
sendAknowledgmentReceipt(formData) { | ||
const url = "https://f6c2io.buildship.run/receipt-aknowlegment"; | ||
fetch(url, { method: "POST", body: formData }).catch((err) => console.log(err)); | ||
}, | ||
|
||
// contact form validation | ||
contactFormValidation() { | ||
// contact form | ||
|
@@ -1215,6 +1220,9 @@ const app = Vue.createApp({ | |
|
||
// end loading spinner | ||
this.endLoading(); | ||
|
||
// send aknowledgment receipt | ||
this.sendAknowledgmentReceipt(formData); | ||
}) | ||
.catch((err) => console.log(err)); | ||
}, | ||
|