@@ -388,9 +388,7 @@ const tabs = computed(() => {
{
label: 'Calls',
icon: PhoneIcon,
- content: deal.data.activities.filter(
- (activity) => activity.activity_type === 'call'
- ),
+ content: calls.data,
activityTitle: 'Calls',
},
// {
@@ -516,7 +514,7 @@ const notes = createListResource({
fields: ['name', 'title', 'content', 'owner', 'modified'],
filters: { lead: props.dealId },
orderBy: 'modified desc',
- pageLength: 20,
+ pageLength: 999,
auto: true,
})
@@ -560,6 +558,29 @@ async function updateNote(note) {
}
}
}
+
+const calls = createListResource({
+ type: 'list',
+ doctype: 'CRM Call Log',
+ cache: ['Call Logs', props.leadId],
+ fields: [
+ 'name',
+ 'from',
+ 'to',
+ 'duration',
+ 'start_time',
+ 'end_time',
+ 'status',
+ 'type',
+ 'recording_url',
+ 'modified',
+ 'note',
+ ],
+ filters: { lead: props.leadId },
+ orderBy: 'modified desc',
+ pageLength: 999,
+ auto: true,
+})