Many Changes
This commit is contained in:
@@ -72,12 +72,13 @@ const updateItem = async () => {
|
||||
.from("jobs")
|
||||
.update(itemInfo.value)
|
||||
.eq('id',itemInfo.value.id)
|
||||
console.log(error)
|
||||
mode.value = "show"
|
||||
itemInfo.value = {
|
||||
id: 0,
|
||||
title: ""
|
||||
|
||||
if(error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
|
||||
router.push(`/jobs/show/${currentItem.id}`)
|
||||
toast.add({title: "Job erfolgreich gespeichert"})
|
||||
dataStore.fetchJobs()
|
||||
}
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
:columns="columns"
|
||||
@select="selectJob"
|
||||
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Noch keine Einträge' }"
|
||||
/>
|
||||
>
|
||||
<template #customer-data="{row}">
|
||||
{{dataStore.customers.find(customer => customer.id === row.customer) ? dataStore.customers.find(customer => customer.id === row.customer).name : "" }}
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user