show N/A when count is hidden

This commit is contained in:
taehoon 2019-11-12 10:40:36 -05:00
parent 3dae1cf396
commit 949f47063b
2 changed files with 8 additions and 2 deletions

View file

@ -93,6 +93,12 @@ export default {
const roleTitle = rights.admin ? 'admin' : 'moderator'
return validRole && roleTitle
},
hideFollowsCount () {
return this.isOtherUser && this.user.hide_follows_count
},
hideFollowersCount () {
return this.isOtherUser && this.user.hide_followers_count
},
...mapGetters(['mergedConfig'])
},
components: {