From 8b3da718955e7ae80ae64bb5c9983b4feb72da05 Mon Sep 17 00:00:00 2001 From: Viet An Date: Mon, 29 Jun 2026 17:23:48 +0700 Subject: [PATCH] changes --- app/components/pos/CartItem.vue | 16 +++++++++++- app/components/pos/ConfirmOrder.vue | 6 ++++- app/components/pos/POS.vue | 6 +++-- .../pos/composables/useActiveCart.js | 7 +++++- .../pos/composables/usePlaceOrder.js | 25 +++++++++++++++++++ app/components/snackbar/Error.vue | 2 +- app/components/snackbar/Success.vue | 4 +-- 7 files changed, 58 insertions(+), 8 deletions(-) diff --git a/app/components/pos/CartItem.vue b/app/components/pos/CartItem.vue index 2a8a97b..981440b 100644 --- a/app/components/pos/CartItem.vue +++ b/app/components/pos/CartItem.vue @@ -2,6 +2,7 @@ const props = defineProps({ cartItem: Object, deleteable: Boolean, + invalid: Boolean, }); const { $deleteapi, $formatNum, $snackbar } = useNuxtApp(); const { getCarts } = inject("pos"); @@ -30,7 +31,12 @@ async function removeFromCart() { diff --git a/app/components/snackbar/Success.vue b/app/components/snackbar/Success.vue index 52f315f..8ec12a5 100644 --- a/app/components/snackbar/Success.vue +++ b/app/components/snackbar/Success.vue @@ -4,12 +4,12 @@