fix: more UI stuff

This commit is contained in:
Vlad Stan 2023-07-12 16:03:10 +03:00
parent 3864200ffa
commit c3c141cac4
4 changed files with 35 additions and 16 deletions

View file

@ -61,6 +61,17 @@ async function shoppingCartCheckout(path) {
this.shippingZone = zone
},
confirmOrder: function () {
if (!this.shippingZone) {
this.$q.notify({
timeout: 5000,
type: 'warning',
message: 'Please select a shipping zone!',
})
return
}
this.orderConfirmed = true
},
async placeOrder() {
if (!this.shippingZone) {
this.$q.notify({
@ -103,7 +114,7 @@ async function shoppingCartCheckout(path) {
this.$emit('place-order', { event, order })
},
goToShoppingCart: function(){
goToShoppingCart: function () {
this.$emit('change-page', 'shopping-cart-list')
}
},