From 096f9239dd1b019eb72d32e28954680281133528 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 24 Jan 2024 20:59:07 +0530 Subject: [PATCH] fix: keep email content in storage until manually discarded --- frontend/src/components/CommunicationArea.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue index 65cffda2..2e6b7b5d 100644 --- a/frontend/src/components/CommunicationArea.vue +++ b/frontend/src/components/CommunicationArea.vue @@ -65,6 +65,7 @@ import EmailEditor from '@/components/EmailEditor.vue' import EmailIcon from '@/components/Icons/EmailIcon.vue' import { usersStore } from '@/stores/users' +import { useStorage } from '@vueuse/core' import { call } from 'frappe-ui' import { ref, watch, computed, defineModel, nextTick } from 'vue' @@ -83,7 +84,7 @@ const emit = defineEmits(['scroll']) const { getUser } = usersStore() const showCommunicationBox = ref(false) -const newEmail = ref('') +const newEmail = useStorage('emailBoxContent', '') const newEmailEditor = ref(null) const sendEmailRef = ref(null) const attachments = ref([])