feat: added feedback when sending feedback and saved feedback in local storage
Closes #12
This commit is contained in:
@@ -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) => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Paginazione Component -->
|
||||
<div class="card-footer bg-transparent d-flex flex-wrap justify-content-between align-items-center py-3" v-if="totalPages > 1">
|
||||
<span class="text-muted small mb-2 mb-sm-0">Pagina {{ currentPage }} di {{ totalPages }}</span>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user