fix: added Link Control in contact modal for organization
This commit is contained in:
parent
8224af82be
commit
e748c55e6b
@ -41,21 +41,12 @@
|
|||||||
v-model="_contact.last_name"
|
v-model="_contact.last_name"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<FormControl
|
<Link
|
||||||
type="autocomplete"
|
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="md"
|
size="md"
|
||||||
label="Organisation"
|
label="Organization"
|
||||||
:value="_contact.company_name"
|
v-model="_contact.company_name"
|
||||||
:options="
|
doctype="CRM Organization"
|
||||||
organizations.data.map((d) => {
|
|
||||||
return {
|
|
||||||
label: d.name,
|
|
||||||
value: d.name,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
"
|
|
||||||
@change="(e) => (_contact.company_name = e.value)"
|
|
||||||
placeholder="Select organization"
|
placeholder="Select organization"
|
||||||
/>
|
/>
|
||||||
<div class="flex gap-4">
|
<div class="flex gap-4">
|
||||||
@ -82,6 +73,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import Link from '@/components/Controls/Link.vue'
|
||||||
import { FormControl, Dialog, call } from 'frappe-ui'
|
import { FormControl, Dialog, call } from 'frappe-ui'
|
||||||
import { ref, defineModel, nextTick, watch, computed } from 'vue'
|
import { ref, defineModel, nextTick, watch, computed } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user