Move userProfile link to methods

This commit is contained in:
Maxim Filippov 2018-12-17 02:52:27 +03:00
parent 5f10c5e786
commit ea6977cd4d
4 changed files with 10 additions and 10 deletions

View file

@ -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)
}
}
}