From bed9946a22d016675134f05c4111636934e32b98 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 13 Dec 2023 16:53:03 +0530 Subject: [PATCH] fix: make email & phone field as data field while creating new contact --- frontend/src/components/Modals/ContactModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Modals/ContactModal.vue b/frontend/src/components/Modals/ContactModal.vue index ffc46972..ba3de768 100644 --- a/frontend/src/components/Modals/ContactModal.vue +++ b/frontend/src/components/Modals/ContactModal.vue @@ -338,7 +338,7 @@ const sections = computed(() => { fields: [ { label: 'Email', - type: 'dropdown', + type: props.contact.name ? 'dropdown' : 'data', name: 'email_id', options: props.contact?.email_ids?.map((email) => { return { @@ -374,7 +374,7 @@ const sections = computed(() => { fields: [ { label: 'Mobile No.', - type: 'dropdown', + type: props.contact.name ? 'dropdown' : 'data', name: 'mobile_no', options: props.contact?.phone_nos?.map((phone) => { return {