소스 검색

fixed samples in modal card from linked material #1706

bach 3 년 전
부모
커밋
d614a1cf7a

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


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


+ 1 - 0
web/themes/custom/materiotheme/vuejs/api/gql/materiaumodal.fragment.gql

@@ -1,5 +1,6 @@
 fragment MateriauModalFields on Materiau {
   id
+  path
   title
 	short_description
   reference

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

@@ -56,7 +56,7 @@
             </ul>
           </div>
         </section>
-        <section class="tool samples" v-if="item.samples && item.samples.length">
+        <section class="tool samples" v-if="material.samples && material.samples.length">
           <span
             class="btn mdi mdi-map-marker-star-outline"
             v-touch.prevent.stop="onTapTool"
@@ -65,7 +65,7 @@
             <span class="label">{{ $t("materio.Samples") }}</span>
             <ul>
               <li
-                v-for="sample in item.samples"
+                v-for="sample in material.samples"
                 :key="sample.showroom.id"
               >
                 <span class="showroom">{{ sample.showroom.name }}</span>: {{ sample.location }}
@@ -89,7 +89,7 @@
           </div>
         </section>
         <section class="tool print">
-          <a :href="item.path+'/printable/print'" target="_blank">
+          <a :href="material.path+'/printable/print'" target="_blank">
             <span class="btn mdi mdi-printer"/>
           </a>
         </section>

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.