fix: cannot add email & mobile no in contact
This commit is contained in:
parent
baa1770db5
commit
9c59e4d0d8
@ -101,7 +101,10 @@
|
||||
:label="data[field.fieldname]"
|
||||
class="dropdown-button flex w-full items-center justify-between rounded border border-gray-100 bg-surface-gray-2 px-2 py-1.5 text-base text-ink-gray-8 placeholder-ink-gray-4 transition-colors hover:border-outline-gray-modals hover:bg-surface-gray-3 focus:border-outline-gray-4 focus:bg-surface-white focus:shadow-sm focus:outline-none focus:ring-0 focus-visible:ring-2 focus-visible:ring-outline-gray-3"
|
||||
>
|
||||
<div v-if="data[field.fieldname]" class="truncate">
|
||||
<div
|
||||
v-if="data[field.fieldname]"
|
||||
class="truncate"
|
||||
>
|
||||
{{ data[field.fieldname] }}
|
||||
</div>
|
||||
<div
|
||||
|
||||
@ -227,9 +227,7 @@ const _address = ref({})
|
||||
const contact = createResource({
|
||||
url: 'crm.api.contact.get_contact',
|
||||
cache: ['contact', props.contactId],
|
||||
params: {
|
||||
name: props.contactId,
|
||||
},
|
||||
params: { name: props.contactId },
|
||||
auto: true,
|
||||
transform: (data) => {
|
||||
return {
|
||||
@ -340,7 +338,7 @@ const sections = createResource({
|
||||
cache: ['sidePanelSections', 'Contact'],
|
||||
params: { doctype: 'Contact' },
|
||||
auto: true,
|
||||
transform: (data) => getParsedSections(data),
|
||||
transform: (data) => computed(() => getParsedSections(data)),
|
||||
})
|
||||
|
||||
function getParsedSections(_sections) {
|
||||
|
||||
@ -320,9 +320,7 @@ const tabs = [
|
||||
const deals = createResource({
|
||||
url: 'crm.api.contact.get_linked_deals',
|
||||
cache: ['deals', props.contactId],
|
||||
params: {
|
||||
contact: props.contactId,
|
||||
},
|
||||
params: { contact: props.contactId },
|
||||
auto: true,
|
||||
})
|
||||
|
||||
@ -337,7 +335,7 @@ const sections = createResource({
|
||||
cache: ['sidePanelSections', 'Contact'],
|
||||
params: { doctype: 'Contact' },
|
||||
auto: true,
|
||||
transform: (data) => getParsedSections(data),
|
||||
transform: (data) => computed(() => getParsedSections(data)),
|
||||
})
|
||||
|
||||
function getParsedSections(_sections) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user