improved follow and following naming

This commit is contained in:
Grzegorz Leoniec 2018-10-30 13:00:29 +01:00
parent 5d2a578250
commit d0036213d8
2 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@
<ds-space margin="small">
<ds-number
:count="fanCount"
label="Fans"
label="Folgen"
size="x-large" />
</ds-space>
</ds-flex-item>

View File

@ -36,19 +36,19 @@
<ds-flex>
<ds-flex-item>
<no-ssr>
<ds-number label="Fans">
<ds-number label="Folgen">
<hc-count-to
slot="count"
:end-val="fanCount" />
:end-val="followedByCount" />
</ds-number>
</no-ssr>
</ds-flex-item>
<ds-flex-item>
<no-ssr>
<ds-number label="Freunde">
<ds-number label="Folgt">
<hc-count-to
slot="count"
:end-val="user.friendsCount" />
:end-val="Number(user.followingCount) || 0" />
</ds-number>
</no-ssr>
</ds-flex-item>
@ -237,7 +237,7 @@ export default {
myProfile() {
return this.$route.params.slug === this.$store.getters['auth/user'].slug
},
fanCount() {
followedByCount() {
let count = Number(this.user.followedByCount) || 0
if (this.voted) {
// NOTE: this is used for presentation