mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
24 lines
795 B
JavaScript
24 lines
795 B
JavaScript
import { mapGetters, mapMutations } from 'vuex'
|
|
|
|
export default {
|
|
computed: {
|
|
...mapGetters({
|
|
currentUser: 'auth/user',
|
|
filteredPostTypes: 'posts/filteredPostTypes',
|
|
noneSetInPostTypeFilter: 'posts/noneSetInPostTypeFilter',
|
|
articleSetInPostTypeFilter: 'posts/articleSetInPostTypeFilter',
|
|
eventSetInPostTypeFilter: 'posts/eventSetInPostTypeFilter',
|
|
orderedByCreationDate: 'posts/orderedByCreationDate',
|
|
orderBy: 'posts/orderBy',
|
|
}),
|
|
},
|
|
methods: {
|
|
...mapMutations({
|
|
toggleFilterPostType: 'posts/TOGGLE_POST_TYPE',
|
|
toggleUnsetAllPostTypeFilters: 'posts/TOGGLE_UNSET_ALL_POST_TYPES_FILTERS',
|
|
toggleSetUnsetPostTypeFilter: 'posts/TOGGLE_SET_UNSET_POST_TYPE_FILTER',
|
|
toggleOrder: 'posts/TOGGLE_ORDER',
|
|
}),
|
|
},
|
|
}
|