From 0e3586dccf342bb887c52046ca984fe243224685 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 22 Jul 2025 17:45:16 +0200 Subject: [PATCH] Some Fixes in Times --- pages/times/index.vue | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pages/times/index.vue b/pages/times/index.vue index 02f9717..92b9eb4 100644 --- a/pages/times/index.vue +++ b/pages/times/index.vue @@ -80,8 +80,6 @@ const filteredRows = computed(() => { const itemInfo = ref({ user: "", - start: new Date(), - end: "", notes: null, project: null, type: null, @@ -177,8 +175,7 @@ const createTime = async () => { itemInfo.value = {} toast.add({title: "Zeit erfolgreich erstellt"}) showConfigTimeModal.value = false - await dataStore.fetchTimes() - + setup() } } @@ -220,7 +217,7 @@ const format = (date) => { return `${dateFormat}`; } -const getDuration = (time) => { +/*const getDuration = (time) => { const dez = dayjs(time.end).diff(time.start,'hour',true).toFixed(2) const hours = Math.floor(dez) const minutes = Math.floor((dez - hours) * 60) @@ -230,7 +227,7 @@ const getDuration = (time) => { minutes: minutes, composed: `${hours}:${minutes}` } -} +}*/ const setState = async (newState) => { itemInfo.value.state = newState @@ -271,7 +268,7 @@ const getSecondInfo = (item) => { Erstellen