From fd4b1f2d219003f9b67157feb296446fe84f2835 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Mon, 11 Nov 2024 22:38:08 +0530 Subject: [PATCH] feat: Contact Empty state --- .../Contacts/ContactHeader/ContactActions.vue | 8 +- .../Contacts/ContactsLayout.vue | 15 +- .../Contacts/EmptyState/ContactEmptyState.vue | 61 +++++ .../EmptyState/contactEmptyStateContent.js | 228 ++++++++++++++++++ .../components-next/avatar/Avatar.vue | 2 +- .../dashboard/i18n/locale/en/contact.json | 6 + .../contact/pages/ContactsPageRouteView.vue | 37 ++- 7 files changed, 349 insertions(+), 8 deletions(-) create mode 100644 app/javascript/dashboard/components-next/Contacts/EmptyState/ContactEmptyState.vue create mode 100644 app/javascript/dashboard/components-next/Contacts/EmptyState/contactEmptyStateContent.js diff --git a/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue b/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue index 26c76a60a..82abe46af 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactHeader/ContactActions.vue @@ -16,6 +16,10 @@ defineProps({ type: String, default: '', }, + isEmptyState: { + type: Boolean, + default: false, + }, }); const emit = defineEmits(['filter', 'update:sort']); @@ -24,7 +28,7 @@ const emit = defineEmits(['filter', 'update:sort']);