Skip to content

Commit

Permalink
fix: page pagination in tags component (#7061)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDroni authored Apr 25, 2024
1 parent abdd2f0 commit f54551e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/components/tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
:search='innerSearch'
:loading='isLoading'
:options.sync='pagination'
@page-count='pageTotal = $event'
hide-default-footer
ref='dude'
)
Expand Down Expand Up @@ -183,6 +184,7 @@ export default {
sortDesc: [false]
},
pages: [],
pageTotal: 0,
isLoading: true,
scrollStyle: {
vuescroll: {},
Expand Down Expand Up @@ -214,9 +216,6 @@ export default {
tagsSelected () {
return _.filter(this.tags, t => _.includes(this.selection, t.tag))
},
pageTotal () {
return Math.ceil(this.pages.length / this.pagination.itemsPerPage)
},
orderByItems () {
return [
{ text: this.$t('tags:orderByField.creationDate'), value: 'createdAt' },
Expand Down

0 comments on commit f54551e

Please sign in to comment.