mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 19:06:35 +00:00
allow setting same macro content again
This commit is contained in:
@@ -337,12 +337,12 @@ const processSend = async () => {
|
||||
*/
|
||||
watch(
|
||||
() => conversationStore.getMacro('reply').id,
|
||||
(newId, oldId) => {
|
||||
(newId) => {
|
||||
// No macro set.
|
||||
if (!newId) return
|
||||
|
||||
// If macro ID has changed and there is message content, update editor content.
|
||||
if (newId !== oldId && conversationStore.getMacro('reply').message_content) {
|
||||
// If macro has message content, set it in the editor.
|
||||
if (conversationStore.getMacro('reply').message_content) {
|
||||
htmlContent.value = conversationStore.getMacro('reply').message_content
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user