Added Reset after Creation & Save for Customers

This commit is contained in:
2023-12-04 20:40:33 +01:00
parent 04f4ccbe03
commit 4b413e0209

View File

@@ -227,6 +227,11 @@ const createCustomer = async () => {
console.log(error)
} else {
mode.value = "show"
customerInfo.value = {
id: 0,
name: "",
infoData: {}
}
toast.add({title: "Kunde erfolgreich erstellt"})
fetchCustomers()
}
@@ -253,6 +258,11 @@ const updateCustomer = async () => {
.eq('id',customerInfo.value.id)
console.log(error)
mode.value = "show"
customerInfo.value = {
id: 0,
name: "",
infoData: {}
}
toast.add({title: "Kunde erfolgreich gespeichert"})
fetchCustomers()
}