mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Move 'eventsEnded' and 'toggleEventsEnded' from file 'filterMenuMixin.js' to the files where it's used
This commit is contained in:
parent
12f43fd6c7
commit
fb926b7281
@ -26,7 +26,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import FilterMenuMixin from '~/mixins/filterMenuMixin.js'
|
||||
import { mapGetters, mapMutations } from 'vuex'
|
||||
import FilterMenuSection from '~/components/FilterMenu/FilterMenuSection'
|
||||
import LabeledButton from '~/components/_new/generic/LabeledButton/LabeledButton'
|
||||
|
||||
@ -36,12 +36,19 @@ export default {
|
||||
FilterMenuSection,
|
||||
LabeledButton,
|
||||
},
|
||||
mixins: [FilterMenuMixin],
|
||||
computed: {
|
||||
...mapGetters({
|
||||
eventsEnded: 'posts/eventsEnded',
|
||||
}),
|
||||
sectionTitle() {
|
||||
// return $t('filter-menu.eventsEnded')
|
||||
return null
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
...mapMutations({
|
||||
toggleEventsEnded: 'posts/TOGGLE_EVENTS_ENDED',
|
||||
}),
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -9,7 +9,6 @@ export default {
|
||||
articleSetInPostTypeFilter: 'posts/articleSetInPostTypeFilter',
|
||||
eventSetInPostTypeFilter: 'posts/eventSetInPostTypeFilter',
|
||||
orderedByCreationDate: 'posts/orderedByCreationDate',
|
||||
eventsEnded: 'posts/eventsEnded',
|
||||
orderBy: 'posts/orderBy',
|
||||
}),
|
||||
},
|
||||
@ -18,7 +17,6 @@ export default {
|
||||
toggleFilterPostType: 'posts/TOGGLE_POST_TYPE',
|
||||
toggleUnsetAllPostTypeFilters: 'posts/TOGGLE_UNSET_ALL_POST_TYPES_FILTERS',
|
||||
toggleSetUnsetPostTypeFilter: 'posts/TOGGLE_SET_UNSET_POST_TYPE_FILTER',
|
||||
toggleEventsEnded: 'posts/TOGGLE_EVENTS_ENDED',
|
||||
toggleOrder: 'posts/TOGGLE_ORDER',
|
||||
}),
|
||||
},
|
||||
|
||||
@ -191,6 +191,7 @@ export default {
|
||||
computed: {
|
||||
...mapGetters({
|
||||
postsFilter: 'posts/filter',
|
||||
eventsEnded: 'posts/eventsEnded',
|
||||
}),
|
||||
filterButtonIcon() {
|
||||
return this.showFilter ? 'angle-up' : 'angle-down'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user