diff --git a/frontend/src/pages/Deal.vue b/frontend/src/pages/Deal.vue index 9aa22056..38e326be 100644 --- a/frontend/src/pages/Deal.vue +++ b/frontend/src/pages/Deal.vue @@ -103,12 +103,12 @@ >
{{ section.label }} @@ -123,6 +123,7 @@ >
- - - - - - - - - -
+
+
+
+ +
+
+ + {{ getContactByName(contact.name).full_name }} +
+
+ + +
+
+ +
+
+ + {{ getContactByName(contact.name).email_id }} +
+
+ + {{ getContactByName(contact.name).mobile_no }} +
+
+
+
+
+
+
+
@@ -336,7 +330,7 @@ import { ref, computed } from 'vue' import { useRouter } from 'vue-router' const { getUser } = usersStore() -const { contacts } = contactsStore() +const { getContactByName, contacts } = contactsStore() const { getOrganization, getOrganizationOptions } = organizationsStore() const router = useRouter() @@ -479,46 +473,12 @@ const detailSections = computed(() => { { label: 'Contacts', opened: true, - fields: [ - { - label: 'Salutation', - type: 'link', - name: 'salutation', - placeholder: 'Mr./Mrs./Ms.', - options: [ - { label: 'Dr', value: 'Dr' }, - { label: 'Mr', value: 'Mr' }, - { label: 'Mrs', value: 'Mrs' }, - { label: 'Ms', value: 'Ms' }, - { label: 'Mx', value: 'Mx' }, - { label: 'Prof', value: 'Prof' }, - { label: 'Master', value: 'Master' }, - { label: 'Madam', value: 'Madam' }, - { label: 'Miss', value: 'Miss' }, - ], - change: (data) => updateField('salutation', data.value), - }, - { - label: 'First name', - type: 'data', - name: 'first_name', - }, - { - label: 'Last name', - type: 'data', - name: 'last_name', - }, - { - label: 'Email', - type: 'email', - name: 'email', - }, - { - label: 'Mobile no.', - type: 'tel', - name: 'mobile_no', - }, - ], + contacts: deal.data.contacts.map((contact) => { + return { + name: contact.contact, + opened: false, + } + }), }, ] }) @@ -536,7 +496,6 @@ function updateField(name, value) {