fix: also replaced Salutation with Link field

This commit is contained in:
Shariq Ansari 2023-11-13 17:08:23 +05:30
parent e748c55e6b
commit 61fa0eb616

View File

@ -16,12 +16,13 @@
> >
<template #body-content> <template #body-content>
<div class="flex flex-col gap-4"> <div class="flex flex-col gap-4">
<FormControl <Link
type="text"
size="md"
variant="outline" variant="outline"
size="md"
label="Salutation" label="Salutation"
v-model="_contact.salutation" v-model="_contact.salutation"
doctype="Salutation"
placeholder="Mr./Mrs./Ms..."
/> />
<div class="flex gap-4"> <div class="flex gap-4">
<FormControl <FormControl
@ -77,7 +78,6 @@ 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'
import { organizationsStore } from '@/stores/organizations'
const props = defineProps({ const props = defineProps({
contact: { contact: {
@ -97,8 +97,6 @@ const router = useRouter()
const show = defineModel() const show = defineModel()
const contacts = defineModel('reloadContacts') const contacts = defineModel('reloadContacts')
const { organizations } = organizationsStore()
const editMode = ref(false) const editMode = ref(false)
let _contact = ref({}) let _contact = ref({})