Browse Source

Revert "add message on too long comment"

This reverts commit 1f047b8157733842c5a2949d4de18b9f1b14febf.
clovis 4 years ago
parent
commit
503201ca03
1 changed files with 1 additions and 13 deletions
  1. 1 13
      src/components/Questionaire.vue

+ 1 - 13
src/components/Questionaire.vue

@@ -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" }));
+        });
     },
   },
 });