diff --git a/spaces/components/DatePicker.vue b/spaces/components/DatePicker.vue
index ef212cc..02cf05f 100644
--- a/spaces/components/DatePicker.vue
+++ b/spaces/components/DatePicker.vue
@@ -1,4 +1,4 @@
-
- New
-
- Setup
-
+
+
+
+
+
+
+ Weiter
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spaces/pages/workingtimes.vue b/spaces/pages/workingtimes.vue
index 03375e0..f082178 100644
--- a/spaces/pages/workingtimes.vue
+++ b/spaces/pages/workingtimes.vue
@@ -53,7 +53,6 @@ const itemInfo = ref({
start: new Date(),
end: "",
notes: null,
- state: "Entwurf"
})
@@ -153,15 +152,22 @@ const stopStartedTime = async () => {
}
}
-if(dataStore.workingtimes.find(time => time.profile == dataStore.getOwnProfile.id && !time.end)) {
- runningTimeInfo.value = dataStore.workingtimes.find(time => time.profile == dataStore.getOwnProfile.id && !time.end)
+if(dataStore.workingtimes.find(time => time.profile === dataStore.getOwnProfile.id && !time.end)) {
+ runningTimeInfo.value = dataStore.workingtimes.find(time => time.profile === dataStore.getOwnProfile.id && !time.end)
}
const createTime = async () => {
+
+ const date = dayjs(itemInfo.value.start).format("YYYY-MM-DD")
+ const start = dayjs(itemInfo.value.start).format("HH:mm:ssZ")
+ const end = dayjs(itemInfo.value.end).format("HH:mm:ssZ")
+
+
+
const {data,error} = await supabase
- .from("times")
- .insert({...itemInfo.value, tenant: dataStore.currentTenant})
+ .from("workingtimes")
+ .insert({...itemInfo.value, date,start,end, tenant: dataStore.currentTenant})
.select()
if(error) {
@@ -227,7 +233,7 @@ const setState = async (newState) => {
Start
Erstellen
@@ -282,7 +288,39 @@ const setState = async (newState) => {
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
Einreichen