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:
|
for communication in docinfo.communications + docinfo.automated_messages:
|
||||||
activity = {
|
activity = {
|
||||||
"activity_type": "communication",
|
"activity_type": "communication",
|
||||||
|
"communication_type": communication.communication_type,
|
||||||
"creation": communication.creation,
|
"creation": communication.creation,
|
||||||
"data": {
|
"data": {
|
||||||
"subject": communication.subject,
|
"subject": communication.subject,
|
||||||
@ -225,6 +226,7 @@ def get_lead_activities(name):
|
|||||||
for communication in docinfo.communications + docinfo.automated_messages:
|
for communication in docinfo.communications + docinfo.automated_messages:
|
||||||
activity = {
|
activity = {
|
||||||
"activity_type": "communication",
|
"activity_type": "communication",
|
||||||
|
"communication_type": communication.communication_type,
|
||||||
"creation": communication.creation,
|
"creation": communication.creation,
|
||||||
"data": {
|
"data": {
|
||||||
"subject": communication.subject,
|
"subject": communication.subject,
|
||||||
|
|||||||
@ -386,6 +386,12 @@
|
|||||||
{{ __(timeAgo(activity.creation)) }}
|
{{ __(timeAgo(activity.creation)) }}
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
<Badge
|
||||||
|
v-if="activity.communication_type == 'Automated Message'"
|
||||||
|
:label="__('Notification')"
|
||||||
|
variant="subtle"
|
||||||
|
theme="green"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex gap-0.5">
|
<div class="flex gap-0.5">
|
||||||
<Tooltip :text="__('Reply')">
|
<Tooltip :text="__('Reply')">
|
||||||
@ -834,6 +840,7 @@ import {
|
|||||||
Dropdown,
|
Dropdown,
|
||||||
TextEditor,
|
TextEditor,
|
||||||
Avatar,
|
Avatar,
|
||||||
|
Badge,
|
||||||
createResource,
|
createResource,
|
||||||
call,
|
call,
|
||||||
} from 'frappe-ui'
|
} from 'frappe-ui'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user