From 123ee997701db3b0b1e2156837fb1269d7bfe8d2 Mon Sep 17 00:00:00 2001 From: Connor Abbas Date: Sat, 17 May 2025 18:58:32 +0000 Subject: [PATCH 1/2] icon changes --- resources/js/composables/useAppLayout.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/js/composables/useAppLayout.ts b/resources/js/composables/useAppLayout.ts index 8ec0671e..b0085d0b 100644 --- a/resources/js/composables/useAppLayout.ts +++ b/resources/js/composables/useAppLayout.ts @@ -1,7 +1,7 @@ import { ref, computed, onMounted, onUnmounted, watchEffect } from 'vue'; import { usePage, useForm } from '@inertiajs/vue3'; import { route } from 'ziggy-js'; -import { LayoutGrid, House, Info, Github, Code, Settings, LogOut, BookOpen } from 'lucide-vue-next'; +import { LayoutGrid, House, Info, Settings, LogOut, ExternalLink, FileSearch, FolderGit2 } from 'lucide-vue-next'; import { MenuItem } from '@/types'; export function useAppLayout() { @@ -35,17 +35,17 @@ export function useAppLayout() { { label: 'PrimeVue Docs', url: 'https://primevue.org/', - lucideIcon: Code, + lucideIcon: ExternalLink, }, { label: 'Starter Kit Docs', url: 'https://connorabbas.github.io/laravel-primevue-starter-kit-docs/', - lucideIcon: BookOpen, + lucideIcon: FileSearch, }, { label: 'Starter Kit Repo', url: 'https://github.com/connorabbas/laravel-primevue-starter-kit', - lucideIcon: Github, + lucideIcon: FolderGit2, }, ], }, From c4ff0cb803e8270008abc7d482f26e4e156a610e Mon Sep 17 00:00:00 2001 From: Connor Abbas Date: Sat, 17 May 2025 19:05:53 +0000 Subject: [PATCH 2/2] pagination fix --- resources/js/composables/usePaginatedData.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/js/composables/usePaginatedData.ts b/resources/js/composables/usePaginatedData.ts index 80f5836f..4b45dc65 100644 --- a/resources/js/composables/usePaginatedData.ts +++ b/resources/js/composables/usePaginatedData.ts @@ -125,15 +125,19 @@ export function usePaginatedData( pagination.value.rows = event.rows; - fetchData().then(() => { - scrollToTop(); + fetchData({ + onFinish: () => { + scrollToTop(); + }, }); } function filter(): void { pagination.value.page = 1; - fetchData().then(() => { - scrollToTop(); + fetchData({ + onFinish: () => { + scrollToTop(); + }, }); }