add to cart links for products in home
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
></div>
|
||||
</div>
|
||||
<aside class="linked-materials">
|
||||
<h3 class="field__label">{{$t("materio.Linked Materials")}}</h3>
|
||||
<h3 class="field__label">{{ $t('materio.Linked Materials') }}</h3>
|
||||
<div class="cards-list">
|
||||
<ul class="">
|
||||
<li v-for="node in article.linked_materials" v-bind:key="node.id">
|
||||
|
@@ -1,9 +1,11 @@
|
||||
<script>
|
||||
|
||||
import Vue from 'vue'
|
||||
import productsMixins from 'vuejs/components/productsMixins'
|
||||
|
||||
export default {
|
||||
props: ['html', 'full'], // get the html from parent with props
|
||||
mixins: [productsMixins],
|
||||
data() {
|
||||
return {
|
||||
template: null, // compiled template from html used in render
|
||||
@@ -151,7 +153,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
html: function(val) {
|
||||
console.log('html prop changed', val)
|
||||
// console.log('html prop changed', val)
|
||||
this.compileTemplate()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user