From baa49414aa7eb6837f72d5896318251e754200b3 Mon Sep 17 00:00:00 2001 From: elweyn Date: Mon, 13 Mar 2023 10:13:51 +0100 Subject: [PATCH] Use header-button component --- webapp/pages/index.vue | 95 ++++++++++++------------------------------ 1 file changed, 27 insertions(+), 68 deletions(-) diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index 85d480cb4..0fced8ee1 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -43,65 +43,30 @@   - - - {{ $t('contribution.filterMasonryGrid.myTopics') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myFriends') }} - - - - - - {{ $t('contribution.filterMasonryGrid.myGroups') }} - - - + + + +
@@ -160,6 +125,7 @@ import HcEmpty from '~/components/Empty/Empty' import PostTeaser from '~/components/PostTeaser/PostTeaser.vue' import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue' import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue' +import HeaderButton from '~/components/FilterMenu/HeaderButton' import { mapGetters, mapMutations } from 'vuex' import { DonationsQuery } from '~/graphql/Donations' import { filterPosts } from '~/graphql/PostQuery.js' @@ -177,6 +143,7 @@ export default { MasonryGrid, MasonryGridItem, FilterMenuComponent, + HeaderButton, }, mixins: [postListActions], data() { @@ -243,6 +210,9 @@ export default { resetCategories: 'posts/RESET_CATEGORIES', toggleCategory: 'posts/TOGGLE_CATEGORY', }), + openFilterMenu() { + this.showFilter = !this.showFilter + }, showFilterMenu(e) { if (!e || (!e.target.closest('#my-filter') && !e.target.closest('.my-filter-button'))) { if (!this.showFilter) return @@ -344,17 +314,6 @@ export default { float: right; } -.my-filter-button-selected { - padding-right: 30px; - margin-left: 8px; -} - -.base-button.filter-remove { - position: relative; - margin-left: -31px; - top: -5px; -} - .base-button.--circle.post-add-button-bottom { height: 54px; width: 54px;