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

@ -13,7 +13,7 @@
<img :src="message.author.avatar" />
</span>
<div class="chat-content">
<router-link class="chat-name" :to="{ name: 'user-profile', params: { name: message.author.username } }">
<router-link class="chat-name" :to="userProfileLink(message.author)">
{{message.author.username}}
</router-link>
<br>