added samples to search result card
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -16,5 +16,12 @@ fragment SearchResultFields on SearchResult {
|
||||
alt
|
||||
style_cardmedium_url
|
||||
style_hd_url
|
||||
}
|
||||
samples{
|
||||
showroom{
|
||||
name
|
||||
id
|
||||
}
|
||||
location
|
||||
}
|
||||
}
|
||||
|
@@ -27,6 +27,20 @@
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tool samples" v-if="item.samples && item.samples.length">
|
||||
<span class="btn mdi mdi-beaker-outline"/>
|
||||
<div class="tool-content">
|
||||
<span class="label">{{ $t("materio.Samples") }}</span>
|
||||
<ul>
|
||||
<li
|
||||
v-for="sample in item.samples"
|
||||
:key="sample.showroom.id"
|
||||
>
|
||||
<span class="showroom">{{ sample.showroom.name }}</span>: {{ sample.location }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</nav>
|
||||
<section class="images" v-switcher>
|
||||
<figure
|
||||
|
@@ -36,7 +36,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tool samples">
|
||||
<section class="tool samples" v-if="item.samples && item.samples.length">
|
||||
<span class="btn mdi mdi-beaker-outline"/>
|
||||
<div class="tool-content">
|
||||
<span class="label">{{ $t("materio.Samples") }}</span>
|
||||
|
Reference in New Issue
Block a user