mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add class on loadMoreLinks button, refactor static 5 to value.pageSize
This commit is contained in:
parent
b655bbb658
commit
f07ed70f30
@ -7,11 +7,12 @@
|
|||||||
<transaction-link
|
<transaction-link
|
||||||
v-for="item in transactionLinks"
|
v-for="item in transactionLinks"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
v-bind:item="item"
|
v-bind="item"
|
||||||
@reset-transaction-link-list="resetTransactionLinkList"
|
@reset-transaction-link-list="resetTransactionLinkList"
|
||||||
/>
|
/>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<b-button
|
<b-button
|
||||||
|
class="test-button-load-more"
|
||||||
v-if="!value.pending && value.itemsShown < transactionLinkCount"
|
v-if="!value.pending && value.itemsShown < transactionLinkCount"
|
||||||
block
|
block
|
||||||
variant="outline-primary"
|
variant="outline-primary"
|
||||||
@ -58,8 +59,8 @@ export default {
|
|||||||
buttonText() {
|
buttonText() {
|
||||||
const i = this.transactionLinkCount - this.value.itemsShown
|
const i = this.transactionLinkCount - this.value.itemsShown
|
||||||
if (i === 1) return this.$tc('link-load', 0)
|
if (i === 1) return this.$tc('link-load', 0)
|
||||||
if (i < 6) return this.$tc('link-load', 1, { n: i })
|
if (i <= this.value.pageSize) return this.$tc('link-load', 1, { n: i })
|
||||||
return this.$tc('link-load', 2, { n: 5 })
|
return this.$tc('link-load', 2, { n: this.value.pageSize })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user