diff --git a/src/App.vue b/src/App.vue index f5c066f..535b95e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@
-
+
diff --git a/src/backend.ts b/src/backend.ts index e1e5f72..ab374f1 100644 --- a/src/backend.ts +++ b/src/backend.ts @@ -54,8 +54,6 @@ interface WireConfiguration { feedback_timeout: number // seconds } -const delay = () => new Promise(resolve => setTimeout(resolve, 1000)) - export async function fetchConfiguration(): Promise { const result = await api.get("configuration").json() @@ -71,7 +69,7 @@ export async function updateConfiguration(data: Configuration) { feedback_timeout: data.feedbackTimeout.total("seconds") } - await api.post("configuration", { json: wireData }) + await api.put("configuration", { json: wireData }) } export async function fetchBrewingEvents(): Promise { diff --git a/src/components/specific/TypeOfTeaForm.vue b/src/components/specific/TypeOfTeaForm.vue index bff70fc..ff5c6eb 100644 --- a/src/components/specific/TypeOfTeaForm.vue +++ b/src/components/specific/TypeOfTeaForm.vue @@ -1,10 +1,15 @@