diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-07-18 19:50:23 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-07-18 19:50:23 +0900 |
| commit | 269cd560c7cf8139e9bb3bcdd9e92c776ae73dce (patch) | |
| tree | 94dc3ffa6454e3355ea1ad07c07a530ff938c33d /packages/frontend/src/components/MkUserInfo.vue | |
| parent | feat(frontend): Renote時に公開範囲のデフォルト設定が適用さ... (diff) | |
| download | sharkey-269cd560c7cf8139e9bb3bcdd9e92c776ae73dce.tar.gz sharkey-269cd560c7cf8139e9bb3bcdd9e92c776ae73dce.tar.bz2 sharkey-269cd560c7cf8139e9bb3bcdd9e92c776ae73dce.zip | |
enhance(frontend): フォロー/フォロワー非公開時の表示を改善
Close #10934
Resolve #10887
Diffstat (limited to 'packages/frontend/src/components/MkUserInfo.vue')
| -rw-r--r-- | packages/frontend/src/components/MkUserInfo.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkUserInfo.vue b/packages/frontend/src/components/MkUserInfo.vue index 172b517511..81c9d3ec4f 100644 --- a/packages/frontend/src/components/MkUserInfo.vue +++ b/packages/frontend/src/components/MkUserInfo.vue @@ -17,10 +17,10 @@ <div :class="$style.statusItem"> <p :class="$style.statusItemLabel">{{ i18n.ts.notes }}</p><span :class="$style.statusItemValue">{{ user.notesCount }}</span> </div> - <div :class="$style.statusItem"> + <div v-if="isFfVisibleForMe(user)" :class="$style.statusItem"> <p :class="$style.statusItemLabel">{{ i18n.ts.following }}</p><span :class="$style.statusItemValue">{{ user.followingCount }}</span> </div> - <div :class="$style.statusItem"> + <div v-if="isFfVisibleForMe(user)" :class="$style.statusItem"> <p :class="$style.statusItemLabel">{{ i18n.ts.followers }}</p><span :class="$style.statusItemValue">{{ user.followersCount }}</span> </div> </div> @@ -34,6 +34,7 @@ import MkFollowButton from '@/components/MkFollowButton.vue'; import { userPage } from '@/filters/user'; import { i18n } from '@/i18n'; import { $i } from '@/account'; +import { isFfVisibleForMe } from '@/scripts/isFfVisibleForMe'; defineProps<{ user: misskey.entities.UserDetailed; |