From 49b9517df4014e880b57cd9336aa3db291db3d21 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sun, 7 Jan 2024 17:16:23 +0530 Subject: [PATCH] fix: implemented listview pagination in organization,contacts & call logs --- .../components/ListViews/CallLogsListView.vue | 16 ++++++++++++++++ .../components/ListViews/ContactsListView.vue | 17 ++++++++++++++++- .../src/components/ListViews/DealsListView.vue | 16 ++++++++++++++++ .../ListViews/OrganizationsListView.vue | 16 ++++++++++++++++ frontend/src/pages/CallLogs.vue | 10 +++++++++- frontend/src/pages/Contacts.vue | 14 +++++++++++++- frontend/src/pages/Deals.vue | 13 ++++++++++++- frontend/src/pages/Organizations.vue | 14 +++++++++++++- 8 files changed, 111 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/ListViews/CallLogsListView.vue b/frontend/src/components/ListViews/CallLogsListView.vue index ee8f2753..5a8a0e24 100644 --- a/frontend/src/components/ListViews/CallLogsListView.vue +++ b/frontend/src/components/ListViews/CallLogsListView.vue @@ -62,6 +62,15 @@ + diff --git a/frontend/src/components/ListViews/ContactsListView.vue b/frontend/src/components/ListViews/ContactsListView.vue index e73701bd..a4a214c2 100644 --- a/frontend/src/components/ListViews/ContactsListView.vue +++ b/frontend/src/components/ListViews/ContactsListView.vue @@ -63,6 +63,15 @@ + diff --git a/frontend/src/components/ListViews/DealsListView.vue b/frontend/src/components/ListViews/DealsListView.vue index c6bc906b..9a025966 100644 --- a/frontend/src/components/ListViews/DealsListView.vue +++ b/frontend/src/components/ListViews/DealsListView.vue @@ -86,6 +86,15 @@ + diff --git a/frontend/src/components/ListViews/OrganizationsListView.vue b/frontend/src/components/ListViews/OrganizationsListView.vue index 0d48ab42..50572dd0 100644 --- a/frontend/src/components/ListViews/OrganizationsListView.vue +++ b/frontend/src/components/ListViews/OrganizationsListView.vue @@ -51,6 +51,15 @@ + diff --git a/frontend/src/pages/CallLogs.vue b/frontend/src/pages/CallLogs.vue index a86ccda6..bc80dad6 100644 --- a/frontend/src/pages/CallLogs.vue +++ b/frontend/src/pages/CallLogs.vue @@ -4,11 +4,17 @@ - +
{ if (!callLogs.value?.data?.data) return [] diff --git a/frontend/src/pages/Contacts.vue b/frontend/src/pages/Contacts.vue index e8548ccf..b9a7be27 100644 --- a/frontend/src/pages/Contacts.vue +++ b/frontend/src/pages/Contacts.vue @@ -9,11 +9,21 @@ - +
{ return items }) +// contacts data is loaded in the ViewControls component const contacts = ref({}) +const loadMore = ref(1) const rows = computed(() => { if (!contacts.value?.data?.data) return [] diff --git a/frontend/src/pages/Deals.vue b/frontend/src/pages/Deals.vue index 77534cbf..0c4eab6f 100644 --- a/frontend/src/pages/Deals.vue +++ b/frontend/src/pages/Deals.vue @@ -9,11 +9,21 @@ - +
{ diff --git a/frontend/src/pages/Organizations.vue b/frontend/src/pages/Organizations.vue index c5057d10..51c1c57f 100644 --- a/frontend/src/pages/Organizations.vue +++ b/frontend/src/pages/Organizations.vue @@ -13,11 +13,21 @@ - +
{ return items }) +// organizations data is loaded in the ViewControls component const organizations = ref({}) +const loadMore = ref(1) const rows = computed(() => { if (!organizations.value?.data?.data) return []