From 7fede8572d9b67060ed5b12b5f6df257233da8bd Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Tue, 8 Oct 2019 16:55:36 +0300 Subject: [PATCH] change icon --- src/components/account_actions/account_actions.vue | 2 +- src/components/follow_button/follow_button.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/account_actions/account_actions.vue b/src/components/account_actions/account_actions.vue index 5786a5028b..e62ec35990 100644 --- a/src/components/account_actions/account_actions.vue +++ b/src/components/account_actions/account_actions.vue @@ -64,7 +64,7 @@
- +
diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js index 708d15a2b8..4123c9fd2d 100644 --- a/src/components/follow_button/follow_button.js +++ b/src/components/follow_button/follow_button.js @@ -33,11 +33,7 @@ export default { }, methods: { onClick () { - if (this.user.following) { - this.unfollow() - } else { - this.follow() - } + this.user.following ? this.unfollow() : this.follow() }, follow () { this.inProgress = true