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]"
|
: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"
|
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] }}
|
{{ data[field.fieldname] }}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -227,9 +227,7 @@ const _address = ref({})
|
|||||||
const contact = createResource({
|
const contact = createResource({
|
||||||
url: 'crm.api.contact.get_contact',
|
url: 'crm.api.contact.get_contact',
|
||||||
cache: ['contact', props.contactId],
|
cache: ['contact', props.contactId],
|
||||||
params: {
|
params: { name: props.contactId },
|
||||||
name: props.contactId,
|
|
||||||
},
|
|
||||||
auto: true,
|
auto: true,
|
||||||
transform: (data) => {
|
transform: (data) => {
|
||||||
return {
|
return {
|
||||||
@ -340,7 +338,7 @@ const sections = createResource({
|
|||||||
cache: ['sidePanelSections', 'Contact'],
|
cache: ['sidePanelSections', 'Contact'],
|
||||||
params: { doctype: 'Contact' },
|
params: { doctype: 'Contact' },
|
||||||
auto: true,
|
auto: true,
|
||||||
transform: (data) => getParsedSections(data),
|
transform: (data) => computed(() => getParsedSections(data)),
|
||||||
})
|
})
|
||||||
|
|
||||||
function getParsedSections(_sections) {
|
function getParsedSections(_sections) {
|
||||||
|
|||||||
@ -320,9 +320,7 @@ const tabs = [
|
|||||||
const deals = createResource({
|
const deals = createResource({
|
||||||
url: 'crm.api.contact.get_linked_deals',
|
url: 'crm.api.contact.get_linked_deals',
|
||||||
cache: ['deals', props.contactId],
|
cache: ['deals', props.contactId],
|
||||||
params: {
|
params: { contact: props.contactId },
|
||||||
contact: props.contactId,
|
|
||||||
},
|
|
||||||
auto: true,
|
auto: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -337,7 +335,7 @@ const sections = createResource({
|
|||||||
cache: ['sidePanelSections', 'Contact'],
|
cache: ['sidePanelSections', 'Contact'],
|
||||||
params: { doctype: 'Contact' },
|
params: { doctype: 'Contact' },
|
||||||
auto: true,
|
auto: true,
|
||||||
transform: (data) => getParsedSections(data),
|
transform: (data) => computed(() => getParsedSections(data)),
|
||||||
})
|
})
|
||||||
|
|
||||||
function getParsedSections(_sections) {
|
function getParsedSections(_sections) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user