mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
feat: Add ability to create a new conversation if the previous conversation is resolved (#2512)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -113,7 +113,11 @@ export default {
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return { isOnCollapsedView: false, showAttachmentError: false };
|
||||
return {
|
||||
isOnCollapsedView: false,
|
||||
showAttachmentError: false,
|
||||
isOnNewConversation: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
@@ -130,7 +134,10 @@ export default {
|
||||
if (this.conversationSize) {
|
||||
return 'messageView';
|
||||
}
|
||||
if (this.preChatFormEnabled && !currentUserEmail) {
|
||||
if (
|
||||
this.isOnNewConversation ||
|
||||
(this.preChatFormEnabled && !currentUserEmail)
|
||||
) {
|
||||
return 'preChatFormView';
|
||||
}
|
||||
return 'messageView';
|
||||
@@ -163,6 +170,10 @@ export default {
|
||||
this.showAttachmentError = false;
|
||||
}, 3000);
|
||||
});
|
||||
bus.$on(BUS_EVENTS.START_NEW_CONVERSATION, () => {
|
||||
this.isOnCollapsedView = true;
|
||||
this.isOnNewConversation = true;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
startConversation() {
|
||||
|
||||
Reference in New Issue
Block a user