diff --git a/client/components/CookbookForm.js b/client/components/CookbookForm.js index 6ed804a..a49c362 100644 --- a/client/components/CookbookForm.js +++ b/client/components/CookbookForm.js @@ -9,6 +9,8 @@ export default { const logs = ref([""]); const who = ref(""); + const sent = ref(false); + const disabled = computed(() => { return [title, description, nature, logs, who].some((input) => input.value == ""); }); @@ -25,46 +27,72 @@ export default { who: who.value, }), }); + sent.value = true; + title.value = ""; + description.value = ""; + nature.value = ""; + logs.value = [""]; + who.value = ""; }; - return { title, description, nature, logs, who, disabled, submit }; + return { title, description, nature, logs, who, disabled, submit, sent }; }, template: ` -
-
- - -
+
-
- - -
-
- - -
+
-
- - - -
+
+ Thanks for sharing! + Your entry is being added to the cookbook. +
-
- - -
+
+ +
+ + -
- + + +
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + + +
+ +
+ + +
+ +
+ +
- -