feat: show total cart item count
This commit is contained in:
parent
2b0664b613
commit
e1b2a4a479
2 changed files with 13 additions and 5 deletions
|
|
@ -181,10 +181,16 @@
|
|||
<q-btn v-else @click="accountDialog.show = true" color="gray" icon="person_add" flat
|
||||
size="lg"><q-tooltip>User
|
||||
Config</q-tooltip></q-btn>
|
||||
<q-btn color="gray" icon="shopping_cart" flat size="lg"
|
||||
@click="setActivePage('shopping-cart-list')"><q-tooltip>Shopping
|
||||
Cart</q-tooltip></q-btn>
|
||||
<q-btn color="gray" icon="shopping_cart" dense round flat size="lg"
|
||||
@click="setActivePage('shopping-cart-list')">
|
||||
<q-tooltip>Shopping Cart</q-tooltip>
|
||||
|
||||
<q-badge v-if="allCartsItemCount" color="secondary" floating>
|
||||
<span v-text="allCartsItemCount"></span>
|
||||
</q-badge>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
</q-toolbar>
|
||||
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue