[Enhancement] Group widget messages by date (#363)
* [Enhancement] Group widget messages by date * Update DateSeparator snapshot
This commit is contained in:
parent
7b63cbe1f7
commit
cfc56705fd
11 changed files with 193 additions and 13 deletions
|
@ -4,7 +4,7 @@
|
|||
<ChatHeaderExpanded v-if="isHeaderExpanded" />
|
||||
<ChatHeader v-else :title="getHeaderName" />
|
||||
</div>
|
||||
<ConversationWrap :messages="getConversation" />
|
||||
<ConversationWrap :grouped-messages="groupedMessages" />
|
||||
<div class="footer-wrap">
|
||||
<ChatFooter :on-send-message="handleSendMessage" />
|
||||
</div>
|
||||
|
@ -36,9 +36,12 @@ export default {
|
|||
},
|
||||
},
|
||||
computed: {
|
||||
...mapGetters('conversation', ['getConversation', 'getConversationSize']),
|
||||
...mapGetters({
|
||||
groupedMessages: 'conversation/getGroupedConversation',
|
||||
conversationSize: 'conversation/getConversationSize',
|
||||
}),
|
||||
isHeaderExpanded() {
|
||||
return this.getConversationSize === 0;
|
||||
return this.conversationSize === 0;
|
||||
},
|
||||
getHeaderName() {
|
||||
return window.chatwootWebChannel.website_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue