mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Ebertsche Knöpfe for filter by posts in my groups
This commit is contained in:
parent
a784b0f860
commit
1575ee9765
@ -270,6 +270,7 @@
|
|||||||
"filterFollow": "Beiträge von Nutzern filtern, denen ich folge",
|
"filterFollow": "Beiträge von Nutzern filtern, denen ich folge",
|
||||||
"filterMasonryGrid": {
|
"filterMasonryGrid": {
|
||||||
"myFriends": "Nutzer denen ich folge",
|
"myFriends": "Nutzer denen ich folge",
|
||||||
|
"myGroups": "Meine Gruppen",
|
||||||
"myTopics": "Meine Themen",
|
"myTopics": "Meine Themen",
|
||||||
"noFilter": "Beiträge filtern"
|
"noFilter": "Beiträge filtern"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -270,6 +270,7 @@
|
|||||||
"filterFollow": "Filter contributions from users I follow",
|
"filterFollow": "Filter contributions from users I follow",
|
||||||
"filterMasonryGrid": {
|
"filterMasonryGrid": {
|
||||||
"myFriends": "Users I follow",
|
"myFriends": "Users I follow",
|
||||||
|
"myGroups": "My groups",
|
||||||
"myTopics": "My topics",
|
"myTopics": "My topics",
|
||||||
"noFilter": "Filter posts"
|
"noFilter": "Filter posts"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -30,7 +30,11 @@
|
|||||||
<div class="filterButtonMenu" :class="{ 'hide-filter': hideByScroll }">
|
<div class="filterButtonMenu" :class="{ 'hide-filter': hideByScroll }">
|
||||||
<base-button
|
<base-button
|
||||||
class="my-filter-button"
|
class="my-filter-button"
|
||||||
v-if="!postsFilter['categories_some'] && !postsFilter['author']"
|
v-if="
|
||||||
|
!postsFilter['categories_some'] &&
|
||||||
|
!postsFilter['author'] &&
|
||||||
|
!postsFilter['postsInMyGroups']
|
||||||
|
"
|
||||||
right
|
right
|
||||||
@click="showFilter = !showFilter"
|
@click="showFilter = !showFilter"
|
||||||
filled
|
filled
|
||||||
@ -66,6 +70,20 @@
|
|||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span v-if="postsFilter['postsInMyGroups']">
|
||||||
|
<base-button class="my-filter-button" right @click="showFilter = !showFilter" filled>
|
||||||
|
{{ $t('contribution.filterMasonryGrid.myGroups') }}
|
||||||
|
</base-button>
|
||||||
|
<base-button
|
||||||
|
class="filter-remove"
|
||||||
|
@click="resetByGroups"
|
||||||
|
icon="close"
|
||||||
|
:title="$t('filter-menu.deleteFilter')"
|
||||||
|
style="margin-left: -8px"
|
||||||
|
filled
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
|
||||||
<div id="my-filter" v-if="showFilter">
|
<div id="my-filter" v-if="showFilter">
|
||||||
<div @mouseleave="showFilter = false">
|
<div @mouseleave="showFilter = false">
|
||||||
<filter-menu-component @showFilterMenu="showFilterMenu" />
|
<filter-menu-component @showFilterMenu="showFilterMenu" />
|
||||||
@ -203,6 +221,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
...mapMutations({
|
...mapMutations({
|
||||||
resetByFollowed: 'posts/TOGGLE_FILTER_BY_FOLLOWED',
|
resetByFollowed: 'posts/TOGGLE_FILTER_BY_FOLLOWED',
|
||||||
|
resetByGroups: 'posts/TOGGLE_FILTER_BY_MY_GROUPS',
|
||||||
resetCategories: 'posts/RESET_CATEGORIES',
|
resetCategories: 'posts/RESET_CATEGORIES',
|
||||||
toggleCategory: 'posts/TOGGLE_CATEGORY',
|
toggleCategory: 'posts/TOGGLE_CATEGORY',
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user