Added Update Emit after Phase Change
This commit is contained in:
@@ -101,13 +101,20 @@ const changeActivePhase = async (key) => {
|
||||
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({
|
||||
createdBy: profileStore.activeProfile.id,
|
||||
tenant: profileStore.currentTenant,
|
||||
text: `Aktive Phase zu "${phaseLabel}" gewechselt`,
|
||||
project: item.id
|
||||
})
|
||||
|
||||
emit("updateNeeded")
|
||||
|
||||
}
|
||||
|
||||
const invoiceDeliveryNotes = () => {
|
||||
|
||||
Reference in New Issue
Block a user