feat: Create contact
This commit is contained in:
@@ -12,12 +12,16 @@ import Icon from 'dashboard/components-next/icon/Icon.vue';
|
||||
const props = defineProps({
|
||||
contactData: {
|
||||
type: Object,
|
||||
required: true,
|
||||
default: null,
|
||||
},
|
||||
isDetailsView: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
isNewContact: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(['update']);
|
||||
@@ -76,6 +80,7 @@ const validationRules = {
|
||||
const v$ = useVuelidate(validationRules, state);
|
||||
|
||||
const updateState = () => {
|
||||
if (props.isNewContact) return;
|
||||
const {
|
||||
id,
|
||||
name = '',
|
||||
|
||||
Reference in New Issue
Block a user