diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactMergeForm.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactMergeForm.vue new file mode 100644 index 000000000..dc38c4649 --- /dev/null +++ b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactMergeForm.vue @@ -0,0 +1,112 @@ + + + + + + + + {{ t('CONTACTS_LAYOUT.SIDEBAR.MERGE.PRIMARY') }} + + + {{ t('CONTACTS_LAYOUT.SIDEBAR.MERGE.PRIMARY_HELP_LABEL') }} + + + emit('update:primaryContactId', value)" + @search="query => emit('search', query)" + /> + + + + + + + + + + + {{ t('CONTACTS_LAYOUT.SIDEBAR.MERGE.PARENT') }} + + + {{ t('CONTACTS_LAYOUT.SIDEBAR.MERGE.PARENT_HELP_LABEL') }} + + + + + + + {{ selectedContact.name }} + + + {{ selectedContact.email }} + + + + + + diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactMergeForm.story.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactMergeForm.story.vue new file mode 100644 index 000000000..dbf22dadd --- /dev/null +++ b/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactMergeForm.story.vue @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactsForm.story.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactsForm.story.vue index 4be69380c..306df1df0 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactsForm.story.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsForm/story/ContactsForm.story.vue @@ -1,6 +1,6 @@