diff options
Diffstat (limited to 'src/components/follow_button/follow_button.js')
| -rw-r--r-- | src/components/follow_button/follow_button.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js index df42692b..3edbcb86 100644 --- a/src/components/follow_button/follow_button.js +++ b/src/components/follow_button/follow_button.js @@ -1,6 +1,6 @@ import { requestFollow, requestUnfollow } from '../../services/follow_manipulate/follow_manipulate' export default { - props: ['relationship', 'labelFollowing', 'buttonClass'], + props: ['relationship', 'user', 'labelFollowing', 'buttonClass'], data () { return { inProgress: false @@ -29,6 +29,9 @@ export default { } else { return this.$t('user_card.follow') } + }, + disabled () { + return this.inProgress || this.user.deactivated } }, methods: { |
