feat: show quantity in card view if quantity == 0 (hay-kot/homebox#672) (#673)

* feat: show quantity in card view if quantity == 0 (hay-kot/homebox#672)

* Update frontend/components/Item/Card.vue

---------

Co-authored-by: bee-eater <bee-eater@users.noreply.github.com>
Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
Marcel K 2024-01-04 22:10:44 +01:00 committed by GitHub
parent f3f2116a2b
commit d8e49622e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@
<div v-if="item.insured" class="tooltip z-10" data-tip="Insured"> <div v-if="item.insured" class="tooltip z-10" data-tip="Insured">
<Icon class="h-5 w-5 text-primary" name="mdi-shield-check" /> <Icon class="h-5 w-5 text-primary" name="mdi-shield-check" />
</div> </div>
<div v-if="item.quantity > 1" class="tooltip" data-tip="Quantity"> <div class="tooltip" data-tip="Quantity">
<span class="badge h-5 w-5 badge-primary badge-sm text-xs"> <span class="badge h-5 w-5 badge-primary badge-sm text-xs">
{{ item.quantity }} {{ item.quantity }}
</span> </span>