Add generateProfileLink

This commit is contained in:
Maxim Filippov 2018-12-13 05:00:01 +03:00
parent ae8f0f36d8
commit 24caa2cfcd
4 changed files with 31 additions and 1 deletions

View file

@ -1,3 +1,5 @@
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
const chatPanel = {
data () {
return {
@ -9,6 +11,9 @@ const chatPanel = {
computed: {
messages () {
return this.$store.state.chat.messages
},
userProfileLink (user) {
return generateProfileLink(user, user.name)
}
},
methods: {