Fixes default view mode not being loaded on Term Items List on theme.

This commit is contained in:
Mateus Machado Luna 2018-09-10 09:25:59 -03:00
parent 42bfbadd30
commit 3604775cc5
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,9 @@ export const ThemeItemsListing = new Vue({
if (this.$el.attributes['default-view-mode'] != undefined) if (this.$el.attributes['default-view-mode'] != undefined)
this.defaultViewMode = this.$el.attributes['default-view-mode'].value; this.defaultViewMode = this.$el.attributes['default-view-mode'].value;
else
this.defaultViewMode = 'cards';
if (this.$el.attributes['enabled-view-modes'] != undefined) if (this.$el.attributes['enabled-view-modes'] != undefined)
this.enabledViewModes = this.$el.attributes['enabled-view-modes'].value.split(','); this.enabledViewModes = this.$el.attributes['enabled-view-modes'].value.split(',');

View File

@ -28,6 +28,7 @@ export default {
}); });
this.$on('sendValuesToTags', data => { this.$on('sendValuesToTags', data => {
// console.log(data)
this.$store.dispatch('search/addFilterTag', data); this.$store.dispatch('search/addFilterTag', data);
}); });