fix: also fixed for mobile view

This commit is contained in:
Shariq Ansari 2025-02-04 12:59:31 +05:30
parent 69f14159cf
commit 82a728e041

View File

@ -65,10 +65,38 @@
v-model="deal.data" v-model="deal.data"
:sections="sections.data" :sections="sections.data"
doctype="CRM Deal" doctype="CRM Deal"
v-slot="{ section }"
@update="updateField" @update="updateField"
@reload="sections.reload" @reload="sections.reload"
> >
<template #actions="{ section }">
<div v-if="section.name == 'contacts_section'" class="pr-2">
<Link
value=""
doctype="Contact"
@change="(e) => addContact(e)"
:onCreate="
(value, close) => {
_contact = {
first_name: value,
company_name: deal.data.organization,
}
showContactModal = true
close()
}
"
>
<template #target="{ togglePopover }">
<Button
class="h-7 px-3"
variant="ghost"
icon="plus"
@click="togglePopover()"
/>
</template>
</Link>
</div>
</template>
<template #default="{ section }">
<div <div
v-if="section.name == 'contacts_section'" v-if="section.name == 'contacts_section'"
class="contacts-area" class="contacts-area"
@ -171,6 +199,7 @@
{{ __('No contacts added') }} {{ __('No contacts added') }}
</div> </div>
</div> </div>
</template>
</SidePanelLayout> </SidePanelLayout>
</div> </div>
</div> </div>
@ -224,6 +253,7 @@ import OrganizationModal from '@/components/Modals/OrganizationModal.vue'
import AssignTo from '@/components/AssignTo.vue' import AssignTo from '@/components/AssignTo.vue'
import ContactModal from '@/components/Modals/ContactModal.vue' import ContactModal from '@/components/Modals/ContactModal.vue'
import Section from '@/components/Section.vue' import Section from '@/components/Section.vue'
import Link from '@/components/Controls/Link.vue'
import SidePanelLayout from '@/components/SidePanelLayout.vue' import SidePanelLayout from '@/components/SidePanelLayout.vue'
import SLASection from '@/components/SLASection.vue' import SLASection from '@/components/SLASection.vue'
import CustomActions from '@/components/CustomActions.vue' import CustomActions from '@/components/CustomActions.vue'