refs #116 Open account profile when click reblogged user

This commit is contained in:
AkiraFukushima 2018-03-30 17:50:21 +09:00
parent 246ce3aed3
commit 57697385d1
1 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<icon name="retweet" scala="0.7"></icon>
</div>
<div class="action-detail">
<span class="bold">{{ username(message.account) }}</span> boosted your status
<span class="bold" @clikc="openUser(message.account)">{{ username(message.account) }}</span> boosted your status
</div>
<div class="action-icon">
<img :src="message.account.avatar" />
@ -56,6 +56,11 @@ export default {
if (link !== null) {
shell.openExternal(link)
}
},
openUser (account) {
this.$store.dispatch('TimelineSpace/Contents/SideBar/openAccountComponent')
this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account)
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
}
}
}
@ -103,6 +108,10 @@ function findLink (target) {
margin-left: 10px;
font-size: 14px;
float: left;
.bold {
cursor: pointer;
}
}
.action-icon {