Skip to content

Commit

Permalink
Hide data list pagination page links on collection widget
Browse files Browse the repository at this point in the history
Widgets are for quick views, not browsing thousands of entries. Closes #10348.
  • Loading branch information
jackmcdade committed Jul 15, 2024
1 parent 1ea7170 commit b74a8c6
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 b74a8c6

Please sign in to comment.