mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove itemsShown to transactionLinks.length
This commit is contained in:
parent
a6785936ae
commit
96a4413144
@ -13,7 +13,7 @@
|
||||
<div class="mb-3">
|
||||
<b-button
|
||||
class="test-button-load-more"
|
||||
v-if="!value.pending && value.itemsShown < transactionLinkCount"
|
||||
v-if="!value.pending && transactionLinks.length < transactionLinkCount"
|
||||
block
|
||||
variant="outline-primary"
|
||||
@click="loadMoreLinks"
|
||||
@ -57,7 +57,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
buttonText() {
|
||||
const i = this.transactionLinkCount - this.value.itemsShown
|
||||
const i = this.transactionLinkCount - this.transactionLinks.length
|
||||
if (i === 1) return this.$tc('link-load', 0)
|
||||
if (i <= this.value.pageSize) return this.$tc('link-load', 1, { n: i })
|
||||
return this.$tc('link-load', 2, { n: this.value.pageSize })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user