Changes
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,"*")
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
</UDashboardNavbar>
|
||||
|
||||
<UDashboardPanelContent>
|
||||
<UButton
|
||||
@click="useToast().add({title: 'test'})"
|
||||
>
|
||||
Test
|
||||
</UButton>
|
||||
<UDashboardCard
|
||||
title="Anwesenheiten"
|
||||
v-if="dataStore.getStartedWorkingTimes().length > 0"
|
||||
|
||||
Reference in New Issue
Block a user