#433 - Fix conversation page highlight, fetch conversation on converation page

This commit is contained in:
dave 2019-03-25 14:55:58 -04:00
parent 6143b1ce0f
commit 1a68a9db36
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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"