|
|
@ -1,6 +1,6 @@
|
|
|
|
import { requestFollow, requestUnfollow } from '../../services/follow_manipulate/follow_manipulate'
|
|
|
|
import { requestFollow, requestUnfollow } from '../../services/follow_manipulate/follow_manipulate'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
props: ['user'],
|
|
|
|
props: ['user', 'labelFollowing', 'buttonClass'],
|
|
|
|
data () {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
inProgress: false
|
|
|
|
inProgress: false
|
|
|
@ -23,7 +23,7 @@ export default {
|
|
|
|
if (this.inProgress) {
|
|
|
|
if (this.inProgress) {
|
|
|
|
return this.$t('user_card.follow_progress')
|
|
|
|
return this.$t('user_card.follow_progress')
|
|
|
|
} else if (this.user.following) {
|
|
|
|
} else if (this.user.following) {
|
|
|
|
return this.$t('user_card.following')
|
|
|
|
return this.labelFollowing || this.$t('user_card.following')
|
|
|
|
} else if (this.user.requested) {
|
|
|
|
} else if (this.user.requested) {
|
|
|
|
return this.$t('user_card.follow_sent')
|
|
|
|
return this.$t('user_card.follow_sent')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|