diff options
| author | taehoon <th.dev91@gmail.com> | 2019-08-15 13:07:07 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-08-17 14:33:32 -0400 |
| commit | 4b444708f2594028e47dad91f1e90728592474ae (patch) | |
| tree | f4a2986cfa003a065a8baf6b66e7596e59aeec58 /src/components/conversation/conversation.js | |
| parent | 61f61947ad887c0cf8ee94ab7e699be78693579f (diff) | |
fix pin showing logic in conversation
Diffstat (limited to 'src/components/conversation/conversation.js')
| -rw-r--r-- | src/components/conversation/conversation.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index a2b3aeab..cb4db8ea 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -1,4 +1,4 @@ -import { reduce, filter, findIndex, clone } from 'lodash' +import { reduce, filter, findIndex, clone, keyBy } from 'lodash' import Status from '../status/status.vue' const sortById = (a, b) => { @@ -42,7 +42,7 @@ const conversation = { 'statusoid', 'collapsable', 'isPage', - 'showPinned' + 'pinnedStatusIds' ], created () { if (this.isPage) { @@ -104,6 +104,9 @@ const conversation = { }, isExpanded () { return this.expanded || this.isPage + }, + pinnedStatusIdsObject () { + return keyBy(this.pinnedStatusIds, id => id) } }, components: { |
