From bb88c2ed4b4d1272339b4089cddab8f8a5d2ac14 Mon Sep 17 00:00:00 2001 From: ReLoia Date: Thu, 18 Jun 2026 22:32:00 +0200 Subject: [PATCH] feat: added feedback when sending feedback and saved feedback in local storage Closes #12 --- app/pages/admin/reports.vue | 4 -- app/pages/reports/[id].vue | 129 ++++++++++++++++++++++++------------ 2 files changed, 87 insertions(+), 46 deletions(-) diff --git a/app/pages/admin/reports.vue b/app/pages/admin/reports.vue index b4b7b0a..6babc9b 100644 --- a/app/pages/admin/reports.vue +++ b/app/pages/admin/reports.vue @@ -70,11 +70,9 @@ const reportsByStatus = computed(() => .filter((item) => item.total > 0) ) -// --- INIZIO LOGICA PAGINAZIONE --- const currentPage = ref(1) const itemsPerPage = ref(12) -// Reset alla pagina 1 quando cambiano i filtri watch([search, selectedStatus, selectedCategoryId, selectedAreaId], () => { currentPage.value = 1 }) @@ -93,7 +91,6 @@ const paginatedReports = computed(() => { const handlePageChange = (page: number) => { currentPage.value = page } -// --- FINE LOGICA PAGINAZIONE --- const formatDate = (value?: string) => { if (!value) return '-' @@ -245,7 +242,6 @@ const truncate = (value?: string, max = 120) => { -