Skip to content

Commit

Permalink
refactor(product): if product missing, hide categories & labels (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Mar 9, 2024
1 parent 4a8326c commit 5c2eee1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/PriceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<span v-if="hasProductSource">
<ProductBrands :productBrands="product.brands" :readonly="readonly"></ProductBrands>
</span>
<span v-if="hasProductName">
<ProductQuantityChip class="mr-1" :productQuantity="product.product_quantity" :productQuantityUnit="product.product_quantity_unit"></ProductQuantityChip>
<span v-if="hasProductName" class="mr-1">
<ProductQuantityChip :productQuantity="product.product_quantity" :productQuantityUnit="product.product_quantity_unit"></ProductQuantityChip>
</span>
<span v-if="hasPriceOrigin && priceOrigin">
<v-chip label size="small" density="comfortable" class="mr-1">
Expand Down
8 changes: 4 additions & 4 deletions src/components/ProductCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
<span v-if="hasProductSource">
<ProductBrands :productBrands="product.brands" :readonly="readonly"></ProductBrands>
</span>
<span v-if="hasProductSource">
<ProductQuantityChip class="mr-1" :productQuantity="product.product_quantity" :productQuantityUnit="product.product_quantity_unit"></ProductQuantityChip>
<span v-if="hasProductSource" class="mr-1">
<ProductQuantityChip :productQuantity="product.product_quantity" :productQuantityUnit="product.product_quantity_unit"></ProductQuantityChip>
</span>
<br />
<span class="mr-1">
<span v-if="hasProductSource" class="mr-1">
<ProductCategoriesChip :productCategories="product.categories_tags"></ProductCategoriesChip>
</span>
<span>
<span v-if="hasProductSource">
<ProductLabelsChip :productLabels="product.labels_tags"></ProductLabelsChip>
</span>
</p>
Expand Down

0 comments on commit 5c2eee1

Please sign in to comment.