Skip to content

Commit

Permalink
[5.x] Hide data list pagination page links on collection widget (#10458)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade authored Jul 15, 2024
1 parent 3a644c7 commit 483d09b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/js/components/data-list/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

<li
v-for="(page, i) in pages"
v-if="showPageLinks"
:key="i"
:class="{ 'current': page == currentPage }"
>
Expand Down Expand Up @@ -73,6 +74,10 @@ export default {
scrollToTop: {
type: Boolean,
default: true,
},
showPageLinks: {
type: Boolean,
default: true,
}
},
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/entries/Widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
:resource-meta="meta"
@page-selected="selectPage"
:scroll-to-top="false"
:show-page-links="false"
/>
</div>
</data-list>
Expand Down

0 comments on commit 483d09b

Please sign in to comment.