From 99d0f682d57ea3ba70dd0aad3ea4c51e8cfe9a82 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 25 Jul 2023 16:32:45 +0530 Subject: [PATCH] fix: show company logo in listview --- crm/crm/doctype/crm_lead/crm_lead.json | 8 +++++++- frontend/src/components/ListView.vue | 5 +++-- frontend/src/pages/Leads.vue | 6 +++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/crm/crm/doctype/crm_lead/crm_lead.json b/crm/crm/doctype/crm_lead/crm_lead.json index 559e4e69..32005bcf 100644 --- a/crm/crm/doctype/crm_lead/crm_lead.json +++ b/crm/crm/doctype/crm_lead/crm_lead.json @@ -30,6 +30,7 @@ "section_break_uixv", "organization_name", "no_of_employees", + "organization_logo", "column_break_dbsv", "annual_revenue", "industry" @@ -167,11 +168,16 @@ "fieldtype": "Link", "label": "Industry", "options": "CRM Industry" + }, + { + "fieldname": "organization_logo", + "fieldtype": "Attach Image", + "label": "Organization Logo" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-07-24 19:43:16.008607", + "modified": "2023-07-25 16:20:30.468169", "modified_by": "Administrator", "module": "CRM", "name": "CRM Lead", diff --git a/frontend/src/components/ListView.vue b/frontend/src/components/ListView.vue index fd3da47b..b0925af9 100644 --- a/frontend/src/components/ListView.vue +++ b/frontend/src/components/ListView.vue @@ -78,6 +78,7 @@
{ return leads.data?.map((lead) => { return { full_name: lead.first_name + ' ' + lead.last_name, - organization_name: lead.organization_name, + organization_name: { + label: lead.organization_name, + logo: lead.organization_logo, + }, status: { label: lead.status, color: indicatorColor[lead.status],