Move 'eventsEnded' and 'toggleEventsEnded' from file 'filterMenuMixin.js' to the files where it's used

This commit is contained in:
Wolfgang Huß 2023-06-01 19:44:13 +02:00 committed by mahula
parent 12f43fd6c7
commit fb926b7281
3 changed files with 10 additions and 4 deletions

View File

@ -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>

View File

@ -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',
}),
},

View File

@ -191,6 +191,7 @@ export default {
computed: {
...mapGetters({
postsFilter: 'posts/filter',
eventsEnded: 'posts/eventsEnded',
}),
filterButtonIcon() {
return this.showFilter ? 'angle-up' : 'angle-down'