feat: Create contact

This commit is contained in:
iamsivin
2024-11-08 02:22:22 +05:30
parent ecd8b265bc
commit 8320ecd92b
8 changed files with 174 additions and 41 deletions
@@ -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 = '',