diff --git a/frontend/src/components/Activities/Activities.vue b/frontend/src/components/Activities/Activities.vue index 1ef91dc1..76fe02cd 100644 --- a/frontend/src/components/Activities/Activities.vue +++ b/frontend/src/components/Activities/Activities.vue @@ -367,7 +367,7 @@
@@ -438,10 +438,9 @@ :doc="doc" /> { showEmailBox = false newEmailEditor.subject = subject - newEmailEditor.toEmails = doc.data.email ? [doc.data.email] : [] + newEmailEditor.toEmails = doc.email ? [doc.email] : [] newEmailEditor.ccEmails = [] newEmailEditor.bccEmails = [] newEmailEditor.cc = false @@ -54,7 +54,7 @@ }, }" :editable="showEmailBox" - v-model="doc.data" + v-model="doc" v-model:attachments="attachments" :doctype="doctype" :subject="subject" @@ -79,7 +79,7 @@ }, }" :editable="showCommentBox" - v-model="doc.data" + v-model="doc" v-model:attachments="attachments" :doctype="doctype" :placeholder="__('@John, can you please check this?')" @@ -125,12 +125,12 @@ const attachments = ref([]) const subject = computed(() => { let prefix = '' - if (doc.value.data?.lead_name) { - prefix = doc.value.data.lead_name - } else if (doc.value.data?.organization) { - prefix = doc.value.data.organization + if (doc.value?.lead_name) { + prefix = doc.value.lead_name + } else if (doc.value?.organization) { + prefix = doc.value.organization } - return `${prefix} (#${doc.value.data.name})` + return `${prefix} (#${doc.value.name})` }) const signature = createResource({ @@ -199,7 +199,7 @@ async function sendMail() { subject: subject, content: newEmail.value, doctype: props.doctype, - name: doc.value.data.name, + name: doc.value.name, send_email: 1, sender: getUser().email, sender_full_name: getUser()?.full_name || undefined, @@ -209,7 +209,7 @@ async function sendMail() { async function sendComment() { let comment = await call('frappe.desk.form.utils.add_comment', { reference_doctype: props.doctype, - reference_name: doc.value.data.name, + reference_name: doc.value.name, content: newComment.value, comment_email: getUser().email, comment_by: getUser()?.full_name || undefined, diff --git a/frontend/src/pages/Deal.vue b/frontend/src/pages/Deal.vue index 376ea1a3..ece44c0d 100644 --- a/frontend/src/pages/Deal.vue +++ b/frontend/src/pages/Deal.vue @@ -43,16 +43,16 @@ -
+
-
+