fix: show communication date instead of creation

This commit is contained in:
Shariq Ansari 2025-05-22 18:13:07 +05:30
parent 86b7222916
commit b291f82e4d
2 changed files with 4 additions and 2 deletions

View File

@ -124,6 +124,7 @@ def get_deal_activities(name):
activity = {
"activity_type": "communication",
"communication_type": communication.communication_type,
"communication_date": communication.communication_date or communication.creation,
"creation": communication.creation,
"data": {
"subject": communication.subject,
@ -255,6 +256,7 @@ def get_lead_activities(name):
activity = {
"activity_type": "communication",
"communication_type": communication.communication_type,
"communication_date": communication.communication_date or communication.creation,
"creation": communication.creation,
"data": {
"subject": communication.subject,

View File

@ -22,9 +22,9 @@
variant="subtle"
:theme="status.color"
/>
<Tooltip :text="formatDate(activity.creation)">
<Tooltip :text="formatDate(activity.communication_date)">
<div class="text-sm text-ink-gray-5">
{{ __(timeAgo(activity.creation)) }}
{{ __(timeAgo(activity.communication_date)) }}
</div>
</Tooltip>
<div class="flex gap-0.5">