Skip to content

Commit

Permalink
Merge pull request #3 from stephancj/dev
Browse files Browse the repository at this point in the history
feat(contact): added sending aknowlegnment receipt and updated data
  • Loading branch information
stephancj authored Aug 23, 2024
2 parents 9dc8eb1 + 7927639 commit 196e4af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified assets/CV_Stephan.pdf
Binary file not shown.
10 changes: 9 additions & 1 deletion scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1215,6 +1220,9 @@ const app = Vue.createApp({

// end loading spinner
this.endLoading();

// send aknowledgment receipt
this.sendAknowledgmentReceipt(formData);
})
.catch((err) => console.log(err));
},
Expand Down

0 comments on commit 196e4af

Please sign in to comment.