diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-02-07 15:59:37 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-02-07 15:59:37 +0000 |
| commit | 9b49fa3c0c103ff7c62b5792e3b1f5c21d1f40e1 (patch) | |
| tree | bcea714b42bc2e24b7a5b6a1d5b1648d6800c092 /src/components/user_profile/user_profile.js | |
| parent | 85e281d406d61282c01cb0471f7540211114f413 (diff) | |
| parent | 55da7dbfde84aa78ab54efe51b41d9f09646ed03 (diff) | |
Merge branch '287-following-followers-tabs' into 'develop'
Hide Following/Followers tabs if user has them disabled
Closes #287
See merge request pleroma/pleroma-fe!515
Diffstat (limited to 'src/components/user_profile/user_profile.js')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index 7b0ab705..e50048fa 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -58,6 +58,12 @@ const UserProfile = { }, isExternal () { return this.$route.name === 'external-user-profile' + }, + followsTabVisible () { + return this.isUs || !this.user.hide_follows + }, + followersTabVisible () { + return this.isUs || !this.user.hide_followers } }, methods: { |
