Browse Source
Merge pull request #1333 from doccano/fix/1306
Update pagination
pull/1369/head
v1.3.1
Hiroki Nakayama
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
frontend/components/tasks/toolbar/buttons/ButtonPagination.vue
|
@ -113,9 +113,15 @@ export default Vue.extend({ |
|
|
this.$emit('click:jump', page) |
|
|
this.$emit('click:jump', page) |
|
|
}, |
|
|
}, |
|
|
prevPage() { |
|
|
prevPage() { |
|
|
|
|
|
if (this.value === 1) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.$emit('click:prev') |
|
|
this.$emit('click:prev') |
|
|
}, |
|
|
}, |
|
|
nextPage() { |
|
|
nextPage() { |
|
|
|
|
|
if (this.value === this.total) { |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.$emit('click:next') |
|
|
this.$emit('click:next') |
|
|
}, |
|
|
}, |
|
|
firstPage() { |
|
|
firstPage() { |
|
|