This commit is contained in:
Wolfgang Huß 2021-01-21 16:38:55 +01:00
parent e7243261f2
commit 9ce1e089fa
4 changed files with 6 additions and 5 deletions

View File

@ -105,7 +105,7 @@ describe('SearchResults', () => {
})
it('has post tab inactive after emitting switch-tab', async () => {
wrapper.find('.tab-navigation').vm.$emit('switch-tab', 'User') // emits direct from tab component to search results
wrapper.find('.tab-navigation').vm.$emit('switch-tab', 'User') // emits direct from tab component to search results
await wrapper.vm.$nextTick()
await expect(wrapper.find('[data-test="Post-tab"]').classes('--active')).toBe(false)
})

View File

@ -12,7 +12,7 @@ export default {
.mutate({
mutation: PostMutations().pinPost,
variables: {
id: post.id
id: post.id,
},
})
.then(() => {
@ -26,7 +26,7 @@ export default {
.mutate({
mutation: PostMutations().unpinPost,
variables: {
id: post.id
id: post.id,
},
})
.then(() => {

View File

@ -27,7 +27,9 @@
<post-teaser
:post="relatedPost"
:width="{ base: '100%', lg: 1 }"
@removePostFromList="post.relatedContributions = removePostFromList(relatedPost, post.relatedContributions)"
@removePostFromList="
post.relatedContributions = removePostFromList(relatedPost, post.relatedContributions)
"
@pinPost="pinPost(relatedPost, refetchPostList)"
@unpinPost="unpinPost(relatedPost, refetchPostList)"
/>

View File

@ -187,7 +187,6 @@ import { profilePagePosts } from '~/graphql/PostQuery'
import UserQuery from '~/graphql/User'
import { muteUser, unmuteUser } from '~/graphql/settings/MutedUsers'
import { blockUser, unblockUser } from '~/graphql/settings/BlockedUsers'
import PostMutations from '~/graphql/PostMutations'
import UpdateQuery from '~/components/utils/UpdateQuery'
import SocialMedia from '~/components/SocialMedia/SocialMedia'