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:
Muhsin Keloth
2021-06-30 21:09:44 +05:30
committed by GitHub
parent e6e9916fdb
commit f0f66c7da6
13 changed files with 119 additions and 16 deletions

View File

@@ -22,10 +22,16 @@ export default {
return window.chatwootWebChannel.preChatFormEnabled;
},
preChatFormOptions() {
let requireEmail = false;
let preChatMessage = '';
const options = window.chatwootWebChannel.preChatFormOptions || {};
if (!this.isOnNewConversation) {
requireEmail = options.require_email;
preChatMessage = options.pre_chat_message;
}
return {
requireEmail: options.require_email,
preChatMessage: options.pre_chat_message,
requireEmail,
preChatMessage,
};
},
},