From 03e52c34e1f7db319878b6b3d4afbbd619d42372 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 13 May 2024 15:56:06 +0530 Subject: [PATCH] fix: show notification badge if email came from notification --- crm/api/activities.py | 2 ++ frontend/src/components/Activities.vue | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/crm/api/activities.py b/crm/api/activities.py index 9079d47f..ead84b1f 100644 --- a/crm/api/activities.py +++ b/crm/api/activities.py @@ -113,6 +113,7 @@ def get_deal_activities(name): for communication in docinfo.communications + docinfo.automated_messages: activity = { "activity_type": "communication", + "communication_type": communication.communication_type, "creation": communication.creation, "data": { "subject": communication.subject, @@ -225,6 +226,7 @@ def get_lead_activities(name): for communication in docinfo.communications + docinfo.automated_messages: activity = { "activity_type": "communication", + "communication_type": communication.communication_type, "creation": communication.creation, "data": { "subject": communication.subject, diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue index a0e4f6e6..3d9e743f 100644 --- a/frontend/src/components/Activities.vue +++ b/frontend/src/components/Activities.vue @@ -386,6 +386,12 @@ {{ __(timeAgo(activity.creation)) }} +
@@ -834,6 +840,7 @@ import { Dropdown, TextEditor, Avatar, + Badge, createResource, call, } from 'frappe-ui'