#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',
|
'collapsable',
|
||||||
'isPage'
|
'isPage'
|
||||||
],
|
],
|
||||||
|
created () {
|
||||||
|
if (this.isPage) {
|
||||||
|
this.fetchConversation()
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
status () {
|
status () {
|
||||||
return this.statusoid
|
return this.statusoid
|
||||||
|
@ -140,7 +145,7 @@ const conversation = {
|
||||||
this.highlight = id
|
this.highlight = id
|
||||||
},
|
},
|
||||||
getHighlight () {
|
getHighlight () {
|
||||||
return this.expanded ? this.highlight : null
|
return this.isExpanded ? this.highlight : null
|
||||||
},
|
},
|
||||||
toggleExpanded () {
|
toggleExpanded () {
|
||||||
this.expanded = !this.expanded
|
this.expanded = !this.expanded
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
:statusoid="status"
|
:statusoid="status"
|
||||||
:expandable='!expanded'
|
:expandable='!expanded'
|
||||||
:focused="focused(status.id)"
|
:focused="focused(status.id)"
|
||||||
:inConversation="expanded"
|
:inConversation="isExpanded"
|
||||||
:highlight="getHighlight()"
|
:highlight="getHighlight()"
|
||||||
:replies="getReplies(status.id)"
|
:replies="getReplies(status.id)"
|
||||||
class="status-fadein"
|
class="status-fadein"
|
||||||
|
|
Loading…
Reference in a new issue