diff --git a/resources/js/Components/LinkList/LinkList.svelte b/resources/js/Components/LinkList/LinkList.svelte index 98bf218..18cfc5e 100644 --- a/resources/js/Components/LinkList/LinkList.svelte +++ b/resources/js/Components/LinkList/LinkList.svelte @@ -274,7 +274,7 @@ {#if links.data.length && links.total > links.per_page} + totalPages={Math.trunc(links.total / links.per_page) + 1} totalLinks={links.total}/> {/if} bulkEditLinks(bulkEditingAction)} bind:this={groupSelectMenu} bind:selectedGroups/> diff --git a/resources/js/Components/Pagination.svelte b/resources/js/Components/Pagination.svelte index f7ee13e..dc147c4 100644 --- a/resources/js/Components/Pagination.svelte +++ b/resources/js/Components/Pagination.svelte @@ -5,13 +5,18 @@ export let nextPageUrl = ''; export let currentPage = 0; export let totalPages = 0; + export let totalLinks = 0; + + let showLinksCount = false;