added samples to flagcollection and linked material in thematique
This commit is contained in:
@@ -7,6 +7,20 @@
|
||||
<span v-if="item.reference" class="ref">{{ item.reference }}</span>
|
||||
</header>
|
||||
<nav class="tools">
|
||||
<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>
|
||||
<section class="tool flags">
|
||||
<span
|
||||
class="mdi unflag"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<li v-if="flagcolls" v-for="coll in flagcolls" :key="coll.id">
|
||||
<h5
|
||||
:flagcollid="coll.id"
|
||||
@click.prevent="onOpenFlagColl"
|
||||
@click.prevent="onOpenFlagColl(coll.id)"
|
||||
>{{ coll.name }} <span class="length">({{ coll.items.length }})</span></h5>
|
||||
<div class="actions">
|
||||
<span
|
||||
@@ -133,8 +133,8 @@ export default {
|
||||
this.is_deleting_folder = false
|
||||
}
|
||||
},
|
||||
onOpenFlagColl (e) {
|
||||
const flagcollid = e.target.getAttribute('flagcollid');
|
||||
onOpenFlagColl (flagcollid) {
|
||||
// const flagcollid = e.target.getAttribute('flagcollid');
|
||||
console.log("UserFlags onOpenFlagColl", flagcollid);
|
||||
this.openFlagColl(flagcollid)
|
||||
.then(() => {
|
||||
|
Reference in New Issue
Block a user