aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/chat_panel/chat_panel.js6
-rw-r--r--src/components/notification/notification.js6
-rw-r--r--src/components/user_card/user_card.js4
-rw-r--r--src/components/who_to_follow_panel/who_to_follow_panel.js4
4 files changed, 10 insertions, 10 deletions
diff --git a/src/components/chat_panel/chat_panel.js b/src/components/chat_panel/chat_panel.js
index e649e907..e175e90c 100644
--- a/src/components/chat_panel/chat_panel.js
+++ b/src/components/chat_panel/chat_panel.js
@@ -11,9 +11,6 @@ const chatPanel = {
computed: {
messages () {
return this.$store.state.chat.messages
- },
- userProfileLink (user) {
- return generateProfileLink(user.id, user.screen_name)
}
},
methods: {
@@ -23,6 +20,9 @@ const chatPanel = {
},
togglePanel () {
this.collapsed = !this.collapsed
+ },
+ userProfileLink (user) {
+ return generateProfileLink(user.id, user.screen_name)
}
}
}
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 15294e11..9ab870b6 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -21,6 +21,9 @@ const Notification = {
methods: {
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
+ },
+ userProfileLink (user) {
+ return generateProfileLink(user.id, user.screen_name)
}
},
computed: {
@@ -31,9 +34,6 @@ const Notification = {
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
return highlightStyle(highlight[user.screen_name])
- },
- userProfileLink (user) {
- return generateProfileLink(user.id, user.screen_name)
}
}
}
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index 31e116a2..ea893567 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -29,9 +29,7 @@ const UserCard = {
denyUser () {
this.$store.state.api.backendInteractor.denyUser(this.user.id)
this.$store.dispatch('removeFollowRequest', this.user)
- }
- },
- computed: {
+ },
userProfileLink (user) {
return generateProfileLink(user.id, user.screen_name)
}
diff --git a/src/components/who_to_follow_panel/who_to_follow_panel.js b/src/components/who_to_follow_panel/who_to_follow_panel.js
index 4507d9e5..c2df6899 100644
--- a/src/components/who_to_follow_panel/who_to_follow_panel.js
+++ b/src/components/who_to_follow_panel/who_to_follow_panel.js
@@ -92,7 +92,9 @@ const WhoToFollowPanel = {
},
suggestionsEnabled () {
return this.$store.state.instance.suggestionsEnabled
- },
+ }
+ },
+ methods: {
userProfileLink (id, name) {
return generateProfileLink(id, name)
}