fix: show notification badge if email came from notification

This commit is contained in:
Shariq Ansari 2024-05-13 15:56:06 +05:30
parent ed1081d718
commit 03e52c34e1
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -386,6 +386,12 @@
{{ __(timeAgo(activity.creation)) }}
</div>
</Tooltip>
<Badge
v-if="activity.communication_type == 'Automated Message'"
:label="__('Notification')"
variant="subtle"
theme="green"
/>
</div>
<div class="flex gap-0.5">
<Tooltip :text="__('Reply')">
@ -834,6 +840,7 @@ import {
Dropdown,
TextEditor,
Avatar,
Badge,
createResource,
call,
} from 'frappe-ui'