From 5863eed59a2412347c3c27e2eed68d3d10c511c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 1 Jun 2023 20:42:51 +0200 Subject: [PATCH] Delete file 'filterMenuMixin.js' and move all from there to the files where it's used --- .../FilterMenu/FilterMenuComponent.vue | 8 +++++-- .../components/FilterMenu/OrderByFilter.vue | 10 ++++++-- .../components/FilterMenu/PostTypeFilter.vue | 15 ++++++++++-- webapp/mixins/filterMenuMixin.js | 23 ------------------- webapp/pages/index.vue | 8 +++++-- 5 files changed, 33 insertions(+), 31 deletions(-) delete mode 100644 webapp/mixins/filterMenuMixin.js diff --git a/webapp/components/FilterMenu/FilterMenuComponent.vue b/webapp/components/FilterMenu/FilterMenuComponent.vue index 20beaedfd..c1179ccbe 100644 --- a/webapp/components/FilterMenu/FilterMenuComponent.vue +++ b/webapp/components/FilterMenu/FilterMenuComponent.vue @@ -18,7 +18,7 @@ diff --git a/webapp/components/FilterMenu/OrderByFilter.vue b/webapp/components/FilterMenu/OrderByFilter.vue index 279c2600a..1edd908b4 100644 --- a/webapp/components/FilterMenu/OrderByFilter.vue +++ b/webapp/components/FilterMenu/OrderByFilter.vue @@ -26,7 +26,7 @@ diff --git a/webapp/mixins/filterMenuMixin.js b/webapp/mixins/filterMenuMixin.js deleted file mode 100644 index 2d7aefc48..000000000 --- a/webapp/mixins/filterMenuMixin.js +++ /dev/null @@ -1,23 +0,0 @@ -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', - }), - }, -} diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 09d4cf919..16a41a831 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -138,7 +138,6 @@