diff --git a/client/components/CookbookForm.js b/client/components/CookbookForm.js
index 4d939fc..6ed804a 100644
--- a/client/components/CookbookForm.js
+++ b/client/components/CookbookForm.js
@@ -1,17 +1,17 @@
export default {
name: "CookbookForm",
setup() {
- const { ref } = Vue;
+ const { ref, computed } = Vue;
- const title = ref("SI18.5 - Diffractive Cookbook");
- const description = ref("Compiling and sharing methods for diffractive reading.");
- const nature = ref("Methods");
- const logs = ref([
- "Do the assignment proposed by Femke",
- "While doing the assignment, make sure to track your method with the help of the following form",
- "This method will be used by others and applied on different resources",
- ]);
- const who = ref("Grr, Kamo, Kimberley");
+ const title = ref("");
+ const description = ref("");
+ const nature = ref("");
+ const logs = ref([""]);
+ const who = ref("");
+
+ const disabled = computed(() => {
+ return [title, description, nature, logs, who].some((input) => input.value == "");
+ });
const submit = function () {
fetch("https://hub.xpub.nl/soupboat/cookbook/", {
@@ -27,7 +27,7 @@ export default {
});
};
- return { title, description, nature, logs, who, submit };
+ return { title, description, nature, logs, who, disabled, submit };
},
template: `
{{recipe.description}}
+{{recipe.who}}
+