fix: show notification badge if email came from notification
This commit is contained in:
parent
ed1081d718
commit
03e52c34e1
@ -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,
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user