Skip to content

Commit

Permalink
Merge pull request #61 from lotteon2/O2F-1034-SNS-frontend-QA-/fix/sn…
Browse files Browse the repository at this point in the history
…s-qa

O2F-1035 [FIX] 자기자신 팔로우 언팔로우 불가 수정
  • Loading branch information
wakkpu authored Dec 27, 2023
2 parents 2e96906 + 678711a commit e543646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/ootd/OOTDProfileCardComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import type { OOTDMemberProfileResponse, OOTDMemberProfileResponseWrapper } from
import { useFollowStore } from '@/stores/follow/FollowStore'
import { toggleFollow } from '@/apis/ootd/FollowService'
import { onBeforeRouteLeave } from 'vue-router'
import { useMemberStore } from '@/stores/member/MemberStore'
const memberStore = useMemberStore()
const memberId = memberStore.getMemberInfo().memberId
const followStore = useFollowStore()
const follows = followStore.follows
Expand Down Expand Up @@ -112,7 +116,8 @@ const handleImageLoad = async () => {
|
팔로우 <span class='follow-count'>{{ member.followingCount }}</span>
</div>
<div v-if='member.isFollowing' class='follow-inactive-btn'
<div v-if='member.id === memberId'></div>
<div v-else-if='member.isFollowing' class='follow-inactive-btn'
@click='followButtonClickListener(member.id, member.isFollowing)'>
<svg class='follow-inactive-check-icon' xmlns='http://www.w3.org/2000/svg' width='13' height='9'
viewBox='0 0 13 9' fill='none'>
Expand Down
3 changes: 2 additions & 1 deletion src/views/OOTDDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ const onDeleteBtnClick = async () => {
</div>
</RouterLink>
<div class='ootd-detail-header-follow-wrapper'>
<div v-if='!post.member.isFollowing'
<div v-if='post.member.id === memberId'></div>
<div v-else-if='!post.member.isFollowing'
@click='followButtonClickListener(post.member.id, post.member.isFollowing)'
class='ootd-detail-header-follow'>
<div class='ootd-detail-header-follow-text'>
Expand Down

0 comments on commit e543646

Please sign in to comment.