aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_card/follow_card.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-10-17 19:03:07 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-10-17 19:03:07 +0000
commit051e6ea5ca8be5231d66e577a7e5407b53e08f61 (patch)
treebb60518900af3f99a4c10cc209037e8937c8f569 /src/components/follow_card/follow_card.js
parent835bbd8b5f8a2bfdf5658fb8698d81832be349fa (diff)
parentb3f590ceb3e2710b278093a7246a3bf53c9aaafd (diff)
Merge branch 'issue/684' into 'develop'
[#684] updated FollowCard component See merge request pleroma/pleroma-fe!972
Diffstat (limited to 'src/components/follow_card/follow_card.js')
-rw-r--r--src/components/follow_card/follow_card.js24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/components/follow_card/follow_card.js b/src/components/follow_card/follow_card.js
index 118d0c7c..aefd609e 100644
--- a/src/components/follow_card/follow_card.js
+++ b/src/components/follow_card/follow_card.js
@@ -1,20 +1,16 @@
import BasicUserCard from '../basic_user_card/basic_user_card.vue'
import RemoteFollow from '../remote_follow/remote_follow.vue'
-import { requestFollow, requestUnfollow } from '../../services/follow_manipulate/follow_manipulate'
+import FollowButton from '../follow_button/follow_button.vue'
const FollowCard = {
props: [
'user',
'noFollowsYou'
],
- data () {
- return {
- inProgress: false
- }
- },
components: {
BasicUserCard,
- RemoteFollow
+ RemoteFollow,
+ FollowButton
},
computed: {
isMe () {
@@ -23,20 +19,6 @@ const FollowCard = {
loggedIn () {
return this.$store.state.users.currentUser
}
- },
- methods: {
- followUser () {
- this.inProgress = true
- requestFollow(this.user, this.$store).then(() => {
- this.inProgress = false
- })
- },
- unfollowUser () {
- this.inProgress = true
- requestUnfollow(this.user, this.$store).then(() => {
- this.inProgress = false
- })
- }
}
}