feat: put product details in card

This commit is contained in:
Vlad Stan 2023-07-05 16:50:04 +03:00
parent ff9891302a
commit 5558b95d1e
2 changed files with 12 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<div>
<q-toolbar>
<!-- <q-toolbar>
<q-toolbar-title></q-toolbar-title>
<chat-dialog v-if="this.customerPrivkey || this.customerUseExtension" :account="account ? account : dropIn"
@ -8,9 +8,17 @@
@remove-from-cart="removeFromCart" @update-qty="updateQty" @reset-cart="resetCart"
@open-checkout="openCheckout"></shopping-cart>
</q-toolbar>
-->
<div class="row">
<product-detail class="col-12" v-if="productDetail && product" :product="product"
@add-to-cart="addToCart"></product-detail>
<div class="col-12 auto-width" v-if="productDetail && product">
<q-card>
<q-card-section>
<product-detail :product="product" @add-to-cart="addToCart"></product-detail>
</q-card-section>
</q-card>
</div>
<div class="col-12 q-my-lg">
<q-separator></q-separator>
</div>

View file

@ -129,7 +129,7 @@ async function customerStall(path) {
}
this.$q.notify({
type: 'positive',
message: `${item.name} added to cart`,
message: `'${item.name}' added to cart`,
icon: 'thumb_up'
})
this.cart.products = prod