Added Update Emit after Phase Change
This commit is contained in:
@@ -101,13 +101,20 @@ const changeActivePhase = async (key) => {
|
|||||||
return p
|
return p
|
||||||
})
|
})
|
||||||
|
|
||||||
await supabase.from("projects").update({phases: item.phases}).eq("id",item.id)
|
const {error:updateError} = await supabase.from("projects").update({phases: item.phases}).eq("id",item.id)
|
||||||
|
|
||||||
|
console.log(updateError)
|
||||||
|
|
||||||
|
|
||||||
const {error} = await supabase.from("historyitems").insert({
|
const {error} = await supabase.from("historyitems").insert({
|
||||||
createdBy: profileStore.activeProfile.id,
|
createdBy: profileStore.activeProfile.id,
|
||||||
tenant: profileStore.currentTenant,
|
tenant: profileStore.currentTenant,
|
||||||
text: `Aktive Phase zu "${phaseLabel}" gewechselt`,
|
text: `Aktive Phase zu "${phaseLabel}" gewechselt`,
|
||||||
project: item.id
|
project: item.id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
emit("updateNeeded")
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const invoiceDeliveryNotes = () => {
|
const invoiceDeliveryNotes = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user