Skip to content
Snippets Groups Projects

Allow canceling a follow request

Merged Ilja requested to merge ilja/pleroma-fe:allow_to_cancel_follow_request into develop
26 files
+ 4
27
Compare changes
  • Side-by-side
  • Inline
Files
26
@@ -14,7 +14,7 @@ export default {
if (this.inProgress || this.relationship.following) {
return this.$t('user_card.follow_unfollow')
} else if (this.relationship.requested) {
return this.$t('user_card.follow_again')
return this.$t('user_card.follow_cancel')
} else {
return this.$t('user_card.follow')
}
@@ -33,7 +33,7 @@ export default {
},
methods: {
onClick () {
this.relationship.following ? this.unfollow() : this.follow()
this.relationship.following || this.relationship.requested ? this.unfollow() : this.follow()
},
follow () {
this.inProgress = true
Loading