User feedback on order cancelation
This commit is contained in:
parent
3b7b9e5134
commit
59f7269930
|
@ -54,7 +54,9 @@ const mouseleave = () => {
|
|||
|
||||
const cancelOrder = async () => {
|
||||
const url = '/api/order/' + order.value.Id
|
||||
await fetch(url, { method: 'DELETE' }).catch(console.error)
|
||||
await fetch(url, { method: 'DELETE' }).then(() => {
|
||||
order.value.Status = 'CANCELED'
|
||||
}).catch(console.error)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue