fix: Avoid editor formatting issues when a canned response is edited (#5533)

This commit is contained in:
Nithin David Thomas
2022-10-01 03:33:33 +05:30
committed by GitHub
parent 7b54990ae6
commit 705d06ac3c
4 changed files with 85 additions and 57 deletions

View File

@@ -56,6 +56,7 @@
<woot-message-editor
v-else
v-model="message"
:editor-id="editorStateId"
class="input"
:is-private="isOnPrivateNote"
:placeholder="messagePlaceHolder"
@@ -429,6 +430,13 @@ export default {
profilePath() {
return frontendURL(`accounts/${this.accountId}/profile/settings`);
},
conversationId() {
return this.currentChat.id;
},
editorStateId() {
const key = `draft-${this.conversationIdByRoute}-${this.replyType}`;
return key;
},
},
watch: {
currentChat(conversation) {