forked from AkkomaGang/akkoma-fe
#433 - Fix conversation page highlight, fetch conversation on converation page
This commit is contained in:
parent
6143b1ce0f
commit
1a68a9db36
2 changed files with 7 additions and 2 deletions
|
@ -36,6 +36,11 @@ const conversation = {
|
|||
'collapsable',
|
||||
'isPage'
|
||||
],
|
||||
created () {
|
||||
if (this.isPage) {
|
||||
this.fetchConversation()
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
status () {
|
||||
return this.statusoid
|
||||
|
@ -140,7 +145,7 @@ const conversation = {
|
|||
this.highlight = id
|
||||
},
|
||||
getHighlight () {
|
||||
return this.expanded ? this.highlight : null
|
||||
return this.isExpanded ? this.highlight : null
|
||||
},
|
||||
toggleExpanded () {
|
||||
this.expanded = !this.expanded
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
:statusoid="status"
|
||||
:expandable='!expanded'
|
||||
:focused="focused(status.id)"
|
||||
:inConversation="expanded"
|
||||
:inConversation="isExpanded"
|
||||
:highlight="getHighlight()"
|
||||
:replies="getReplies(status.id)"
|
||||
class="status-fadein"
|
||||
|
|
Loading…
Reference in a new issue