diff --git a/src/lib/ListPagination.svelte b/src/lib/ListPagination.svelte index d20fdf37..65392242 100644 --- a/src/lib/ListPagination.svelte +++ b/src/lib/ListPagination.svelte @@ -3,9 +3,11 @@ import { Pagination, PaginationItem, PaginationLink } from "sveltestrap"; export let currentPage: number; export let pageAmount: number; - +export let smallPages: boolean = false; - + +{#if pageAmount > 1} + {#if currentPage !== 1} {e.preventDefault(); currentPage -= 1}}>