diff options
| author | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-12 18:25:19 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shpuld@gmail.com> | 2017-04-12 18:25:19 +0300 |
| commit | a675cfbb3ebd9c4c093a4535cc5cd0e672a45500 (patch) | |
| tree | d7b7b5822c7713e90d2778b7f7416b0886d49381 /src/components/conversation/conversation.js | |
| parent | 7ee87c7618bfba986ec7a04581273629a1db9983 (diff) | |
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.
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 281b0183..fa042d23 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -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 } } } |
