refs #1397 Fix opened user's timeline in sidebar

This commit is contained in:
AkiraFukushima 2020-04-25 22:06:20 +09:00
parent 28c7df13b3
commit 3590d115c4
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@
<div class="detail" v-on:dblclick="openDetail(message)"> <div class="detail" v-on:dblclick="openDetail(message)">
<div class="toot-header"> <div class="toot-header">
<div class="user" @click="openUser(originalMessage.account)"> <div class="user" @click="openUser(originalMessage.account)">
<span class="display-name" @click="openUser(message.account)"><bdi v-html="username(originalMessage.account)"></bdi></span> <span class="display-name"><bdi v-html="username(originalMessage.account)"></bdi></span>
<span class="acct">{{ accountName(originalMessage.account) }}</span> <span class="acct">{{ accountName(originalMessage.account) }}</span>
</div> </div>
<div class="timestamp"> <div class="timestamp">
@ -549,6 +549,7 @@ export default {
}) })
}, },
openUser(account) { openUser(account) {
console.log(account)
this.$store.dispatch('TimelineSpace/Contents/SideBar/openAccountComponent') this.$store.dispatch('TimelineSpace/Contents/SideBar/openAccountComponent')
this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account) this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account)
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true) this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)