Skip to content

Commit f54551e

Browse files
authored
fix: page pagination in tags component (#7061)
1 parent abdd2f0 commit f54551e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/components/tags.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
:search='innerSearch'
9999
:loading='isLoading'
100100
:options.sync='pagination'
101+
@page-count='pageTotal = $event'
101102
hide-default-footer
102103
ref='dude'
103104
)
@@ -183,6 +184,7 @@ export default {
183184
sortDesc: [false]
184185
},
185186
pages: [],
187+
pageTotal: 0,
186188
isLoading: true,
187189
scrollStyle: {
188190
vuescroll: {},
@@ -214,9 +216,6 @@ export default {
214216
tagsSelected () {
215217
return _.filter(this.tags, t => _.includes(this.selection, t.tag))
216218
},
217-
pageTotal () {
218-
return Math.ceil(this.pages.length / this.pagination.itemsPerPage)
219-
},
220219
orderByItems () {
221220
return [
222221
{ text: this.$t('tags:orderByField.creationDate'), value: 'createdAt' },

0 commit comments

Comments
 (0)