Explorar el Código

شرط نوع محصول فیزیکی

hgh hace 2 años
padre
commit
f2c20b7429
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/components/Widgets/Store/Shop/components/productItem.vue

+ 2 - 1
src/components/Widgets/Store/Shop/components/productItem.vue

@@ -9,7 +9,8 @@
           <q-icon :name="product.is_physical ? 'shopping_basket' : 'folder'" />
         </div>
       </div>
-      <div class="product-item__badge">
+      <div v-if="product.physical_type"
+           class="product-item__badge">
         <div class="product-item__badge-title">
           {{ product.physical_type_info.label }}
         </div>