mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
use filterdPostTypes getter
This commit is contained in:
parent
f252c76670
commit
5ad7dac1fe
@ -40,10 +40,10 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
postFilters: 'posts/filter',
|
filteredPostTypes: 'posts/filteredPostTypes',
|
||||||
}),
|
}),
|
||||||
eventSetInPostTypeFilter() {
|
eventSetInPostTypeFilter() {
|
||||||
return this.postTypes.postType_in && this.postTypes.postType_in.includes('Event')
|
return this.filteredPostTypes.includes('Event')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user