Browse Source

hide distributor or manufacturer if empty on modal card

bach 2 years ago
parent
commit
00a19835ae

File diff suppressed because it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


BIN
web/themes/custom/materiotheme/assets/dist/main.js.gz


+ 2 - 2
web/themes/custom/materiotheme/vuejs/components/Content/ModalCard.vue

@@ -143,7 +143,7 @@
             </section>
             <section class="industriels">
               <!-- <h4 class="label">{{ $t("default.Contact") }}</h4> -->
-              <section v-if="material.manufacturer">
+              <section v-if="material.manufacturer && material.manufacturer.length">
                 <span class="label">{{ $t("materio.Manufacturer") }}</span>
                 <ul>
                   <li v-for="manu in material.manufacturer" v-bind:key="manu.id">
@@ -155,7 +155,7 @@
                   </li>
                 </ul>
               </section>
-              <section v-if="material.distributor">
+              <section v-if="material.distributor && material.distributor.length">
                 <span class="label">{{ $t("materio.Distributor") }}</span>
                 <ul>
                   <li v-for="distrib in material.distributor" v-bind:key="distrib.id">

Some files were not shown because too many files changed in this diff