Goto-original-arrow button now sets conversation highlight/focus even when inline, setting focus now scrolls you to the focused post smoothly. Hide the arrow button when not expanded.

This commit is contained in:
Shpuld Shpuldson 2017-04-12 18:25:19 +03:00
parent 7ee87c7618
commit a675cfbb3e
4 changed files with 49 additions and 9 deletions

View file

@ -8,6 +8,11 @@ const sortAndFilterConversation = (conversation) => {
}
const conversation = {
data() {
return {
highlight: this.statusoid.id
}
},
props: [
'statusoid',
'collapsable'
@ -54,6 +59,9 @@ const conversation = {
} else {
return (id === this.statusoid.id)
}
},
setHighlight(id) {
this.highlight = id
}
}
}