diff --git a/crm/api/session.py b/crm/api/session.py index 1e60a4fa..2af88328 100644 --- a/crm/api/session.py +++ b/crm/api/session.py @@ -53,13 +53,13 @@ def get_contacts(): contact["email_ids"] = frappe.get_all( "Contact Email", filters={"parenttype": "Contact", "parent": contact.name}, - fields=["email_id", "is_primary"], + fields=["name", "email_id", "is_primary"], ) contact["phone_nos"] = frappe.get_all( "Contact Phone", filters={"parenttype": "Contact", "parent": contact.name}, - fields=["phone", "is_primary_phone", "is_primary_mobile_no"], + fields=["name", "phone", "is_primary_phone", "is_primary_mobile_no"], ) return contacts diff --git a/frontend/src/components/DropdownItem.vue b/frontend/src/components/DropdownItem.vue index 4868d54a..d4144c7e 100644 --- a/frontend/src/components/DropdownItem.vue +++ b/frontend/src/components/DropdownItem.vue @@ -1,39 +1,85 @@ - - - {{ value }} - + + {{ option.value }} + + + + + + + + + + option.onDelete(option, isNew)" + /> + + + - + + diff --git a/frontend/src/components/Modals/ContactModal.vue b/frontend/src/components/Modals/ContactModal.vue index e16c26a3..a2ecfbf2 100644 --- a/frontend/src/components/Modals/ContactModal.vue +++ b/frontend/src/components/Modals/ContactModal.vue @@ -73,11 +73,8 @@ {{ field.label }} - - + + - - + - - - - + + + + + + + No {{ field.label }} Available + + + + + + + + + + + - + - - - - - @@ -146,6 +154,7 @@