Fixes default view mode not being loaded on Term Items List on theme.
This commit is contained in:
parent
42bfbadd30
commit
3604775cc5
|
@ -115,6 +115,9 @@ export const ThemeItemsListing = new Vue({
|
|||
|
||||
if (this.$el.attributes['default-view-mode'] != undefined)
|
||||
this.defaultViewMode = this.$el.attributes['default-view-mode'].value;
|
||||
else
|
||||
this.defaultViewMode = 'cards';
|
||||
|
||||
if (this.$el.attributes['enabled-view-modes'] != undefined)
|
||||
this.enabledViewModes = this.$el.attributes['enabled-view-modes'].value.split(',');
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ export default {
|
|||
});
|
||||
|
||||
this.$on('sendValuesToTags', data => {
|
||||
// console.log(data)
|
||||
this.$store.dispatch('search/addFilterTag', data);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue