From 3d6d6e2afb44fff64ee236132d31517b4b1654c0 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Fri, 8 Nov 2024 10:30:01 +0530 Subject: [PATCH] feat: Import contact --- .../Contacts/ContactHeader/ContactActions.vue | 2 +- .../ContactHeader/ContactImportDialog.vue | 143 ++++++++++++++++++ .../ContactHeader/ContactMoreActions.vue | 5 + .../dashboard/i18n/locale/en/contact.json | 12 ++ 4 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactImportDialog.vue diff --git a/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue b/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue index 63cec5060..26c76a60a 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue @@ -18,7 +18,7 @@ defineProps({ }, }); -const emit = defineEmits(['filter', 'more', 'update:sort']); +const emit = defineEmits(['filter', 'update:sort']); diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json index 163a488fd..77a40c54f 100644 --- a/app/javascript/dashboard/i18n/locale/en/contact.json +++ b/app/javascript/dashboard/i18n/locale/en/contact.json @@ -402,6 +402,18 @@ "IMPORT_CONTACT": "Import contacts", "SAVE_CONTACT": "Save contact" }, + "IMPORT_CONTACT": { + "TITLE": "Import contacts", + "DESCRIPTION": "Import contacts through a CSV file.", + "DOWNLOAD_LABEL": "Download a sample csv.", + "LABEL": "CSV File:", + "CHOOSE_FILE": "Choose file", + "CHANGE": "Change", + "CANCEL": "Cancel", + "IMPORT": "Import", + "SUCCESS_MESSAGE": "You will be notified via email when the import is complete.", + "ERROR_MESSAGE": "There was an error, please try again" + }, "SORT_BY": { "LABEL": "Sort by", "OPTIONS": {