From 425fccc684565aa1d1295c4157a6d200b2bc1935 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Fri, 15 May 2026 10:30:59 +0100 Subject: [PATCH] Fix broken paginate links in gallery --- .../components/tabContentComponents/galleryContent.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/src/components/tabContentComponents/galleryContent.vue b/webapp/src/components/tabContentComponents/galleryContent.vue index 0b3313cf..d17c2780 100644 --- a/webapp/src/components/tabContentComponents/galleryContent.vue +++ b/webapp/src/components/tabContentComponents/galleryContent.vue @@ -61,7 +61,7 @@ @@ -119,8 +119,7 @@ export default { return null; } }, - // name changed as paginateLinks has the prop totalPages - numberOfPages() { + totalPages() { return Math.ceil((this.all_items?.length || 0) / this.itemsPerPage); }, paginatedItems() { @@ -220,6 +219,9 @@ export default { } }, changePage(page) { + console.log(page); + console.log(this.currentPage); + console.log(this.totalPages); if (page >= 1 && page <= this.totalPages && this.currentPage != page) { this.$emit("scrollTop"); this.currentPage = page;