|
|
@@ -157,7 +157,6 @@ export default defineComponent({
|
|
|
saveBenevole() {
|
|
|
this.checkDone = true;
|
|
|
if (!this.areQuestionValid) {
|
|
|
- Toast({ html: "Email invalide", classes: "error" });
|
|
|
return;
|
|
|
}
|
|
|
if (this.name == "") {
|
|
|
@@ -187,16 +186,6 @@ export default defineComponent({
|
|
|
.filter((q) => q.type == "text")
|
|
|
.map((q) => q.title + " : " + (this.commentObject[q.uuid] ?? ""))
|
|
|
.join("\n\r");
|
|
|
- if (this.comment.length > 500) {
|
|
|
- Toast({
|
|
|
- html:
|
|
|
- "Les réponses textuels sont trop longues<br>" +
|
|
|
- this.comment.length +
|
|
|
- "/500 charactères",
|
|
|
- classes: "error",
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
const benevole: BenevoleJSON = {
|
|
|
name: this.name,
|
|
|
surname: this.surname,
|
|
|
@@ -229,8 +218,7 @@ export default defineComponent({
|
|
|
})
|
|
|
.then((data: BenevoleJSON) => {
|
|
|
this.$emit("newRegistration", Benevole.fromJSON(data));
|
|
|
- })
|
|
|
- .catch((error) => Toast({ html: "Erreur" + error, classes: "error" }));
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
});
|