diff --git a/webapp/pages/group/_id/_slug.vue b/webapp/pages/group/_id/_slug.vue index 102a72b94..ee895c0a8 100644 --- a/webapp/pages/group/_id/_slug.vue +++ b/webapp/pages/group/_id/_slug.vue @@ -16,7 +16,7 @@ - @@ -47,7 +47,7 @@ - - - - - {{ label }} - - @@ -195,26 +175,25 @@ import uniqBy from 'lodash/uniqBy' import postListActions from '~/mixins/postListActions' import PostTeaser from '~/components/PostTeaser/PostTeaser.vue' -import HcFollowButton from '~/components/FollowButton.vue' -import HcCountTo from '~/components/CountTo.vue' -import HcBadges from '~/components/Badges.vue' -import FollowList from '~/components/features/FollowList/FollowList' +// import HcFollowButton from '~/components/FollowButton.vue' +// import HcCountTo from '~/components/CountTo.vue' +// import HcBadges from '~/components/Badges.vue' +// import FollowList from '~/components/features/FollowList/FollowList' import HcEmpty from '~/components/Empty/Empty' -import ContentMenu from '~/components/ContentMenu/ContentMenu' +// import ContentMenu from '~/components/ContentMenu/ContentMenu' import AvatarUploader from '~/components/Uploader/AvatarUploader' import ProfileAvatar from '~/components/_new/generic/ProfileAvatar/ProfileAvatar' import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue' import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue' -import TabNavigation from '~/components/_new/generic/TabNavigation/TabNavigation' -import { profilePagePosts } from '~/graphql/PostQuery' +// import TabNavigation from '~/components/_new/generic/TabNavigation/TabNavigation' +// import { profilePagePosts } from '~/graphql/PostQuery' import { groupQuery } from '~/graphql/groups' import { updateGroupMutation } from '~/graphql/groups.js' -import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers' -import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers' -import UpdateQuery from '~/components/utils/UpdateQuery' -import SocialMedia from '~/components/SocialMedia/SocialMedia' +// import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers' +// import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers' +// import UpdateQuery from '~/components/utils/UpdateQuery' +// import SocialMedia from '~/components/SocialMedia/SocialMedia' -// Wolle: // const tabToFilterMapping = ({ tab, id }) => { // return { // post: { author: { id } }, @@ -225,19 +204,19 @@ import SocialMedia from '~/components/SocialMedia/SocialMedia' export default { components: { - SocialMedia, + // SocialMedia, PostTeaser, - HcFollowButton, - HcCountTo, - HcBadges, + // HcFollowButton, + // HcCountTo, + // HcBadges, HcEmpty, ProfileAvatar, - ContentMenu, + // ContentMenu, AvatarUploader, MasonryGrid, MasonryGridItem, - FollowList, - TabNavigation, + // FollowList, + // TabNavigation, }, mixins: [postListActions], transition: { @@ -245,7 +224,6 @@ export default { mode: 'out-in', }, data() { - // Wolle: // const filter = tabToFilterMapping({ tab: 'post', id: this.$route.params.id }) return { Group: [], @@ -254,7 +232,7 @@ export default { offset: 0, pageSize: 6, tabActive: 'post', - // Wolle: filter, + // filter, followedByCountStartValue: 0, followedByCount: 7, followingCount: 7, @@ -303,7 +281,7 @@ export default { // }, }, methods: { - // Wolle: handleTab(tab) { + // handleTab(tab) { // if (this.tabActive !== tab) { // this.tabActive = tab // this.filter = tabToFilterMapping({ tab, id: this.$route.params.id }) @@ -313,7 +291,6 @@ export default { uniq(items, field = 'id') { return uniqBy(items, field) }, - // Wolle: // showMoreContributions($state) { // const { profilePagePosts: PostQuery } = this.$apollo.queries // if (!PostQuery) return // seems this can be undefined on subpages @@ -386,7 +363,6 @@ export default { // }, // }) // }, - // Wolle: // optimisticFollow({ followedByCurrentUser }) { // /* // * Note: followedByCountStartValue is updated to avoid counting from 0 when follow/unfollow @@ -402,21 +378,18 @@ export default { // } // this.user.followedByCurrentUser = followedByCurrentUser // }, - // Wolle: // updateFollow({ followedByCurrentUser, followedBy, followedByCount }) { // this.followedByCountStartValue = this.user.followedByCount // this.user.followedByCount = followedByCount // this.user.followedByCurrentUser = followedByCurrentUser // this.user.followedBy = followedBy // }, - // Wolle: // fetchAllConnections(type) { // if (type === 'following') this.followingCount = Infinity // if (type === 'followedBy') this.followedByCount = Infinity // }, }, apollo: { - // Wolle: // profilePagePosts: { // query() { // return profilePagePosts(this.$i18n) @@ -436,7 +409,7 @@ export default { // }, Group: { query() { - // Wolle: return groupQuery(this.$i18n) // language will be needed for locations + // return groupQuery(this.$i18n) // language will be needed for locations return groupQuery }, variables() {