This commit is contained in:
2024-07-12 22:20:45 +02:00
parent d01869fca8
commit fc0caf2d00
4 changed files with 10 additions and 12 deletions

View File

@@ -952,10 +952,12 @@ setupPage()
row.description = dataStore.getProductById(row.product).description"
>
<template #label>
<span class="truncate">{{dataStore.getProductById(row.product) ? dataStore.getProductById(row.product).name : "Kein Produkt ausgewählt" }}</span>
<span class="truncate">{{row.product ? dataStore.getProductById(row.product).name : "Kein Produkt ausgewählt" }}</span>
</template>
</USelectMenu>
<!--
{{dataStore.getProductById(66)}}
-->
</td>
<td
class="w-120"

View File

@@ -28,9 +28,9 @@ const resourceToAdd = ref(dataStore.activeProfile.id)
const setupPage = async () => {
if(mode.value === "show"){
itemInfo.value = await useSupabaseSelectSingle("events",useRoute().params.id,"*, project(id,name)")
} else if(mode.value === "edit") {
itemInfo.value = await useSupabaseSelectSingle("events",useRoute().params.id,"*")
itemInfo.value = await useSupabaseSelectSingle("events",route.params.id,"*, project(id,name)")
} else if(mode.value === "edit" && route.params.id) {
itemInfo.value = await useSupabaseSelectSingle("events",route.params.id,"*")
}

View File

@@ -14,11 +14,6 @@
</UDashboardNavbar>
<UDashboardPanelContent>
<UButton
@click="useToast().add({title: 'test'})"
>
Test
</UButton>
<UDashboardCard
title="Anwesenheiten"
v-if="dataStore.getStartedWorkingTimes().length > 0"