From 462f50e9db9b08e160988ded2a494e3e8a1b45c8 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sat, 18 Dec 2021 15:02:22 -0600 Subject: [PATCH] Add "deactivated user" card https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/1417 --- src/components/follow_button/follow_button.js | 5 ++++- src/components/follow_button/follow_button.vue | 2 +- src/components/user_card/user_card.vue | 14 +++++++++++++- src/i18n/en.json | 1 + src/modules/users.js | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js index 95e7cb6b..1a44d18e 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: { diff --git a/src/components/follow_button/follow_button.vue b/src/components/follow_button/follow_button.vue index 7f85f1d7..965d5256 100644 --- a/src/components/follow_button/follow_button.vue +++ b/src/components/follow_button/follow_button.vue @@ -2,7 +2,7 @@