mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
expose decayStartBlock to components
This commit is contained in:
parent
c4b6f0cc18
commit
c60518d39d
@ -109,6 +109,7 @@
|
||||
export default {
|
||||
name: 'DecayInformation',
|
||||
props: {
|
||||
decayStartBlock: { type: Date, default: null },
|
||||
type: { type: String, default: '' },
|
||||
decay: {
|
||||
decay: '',
|
||||
|
||||
@ -24,6 +24,7 @@
|
||||
:gdt-balance="GdtBalance"
|
||||
:transactions="transactions"
|
||||
:transactionCount="transactionCount"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
:pending="pending"
|
||||
@update-balance="updateBalance"
|
||||
@update-transactions="updateTransactions"
|
||||
@ -58,6 +59,7 @@ export default {
|
||||
transactions: [],
|
||||
bookedBalance: 0,
|
||||
transactionCount: 0,
|
||||
decayStartBlock: null,
|
||||
pending: true,
|
||||
visible: false,
|
||||
}
|
||||
@ -97,7 +99,8 @@ export default {
|
||||
this.transactions = transactionList.transactions
|
||||
this.balance = Number(transactionList.balance)
|
||||
this.bookedBalance = Number(transactionList.balance)
|
||||
this.transactionCount = transactionList.count
|
||||
this.transactionCount = Number(transactionList.count)
|
||||
this.decayStartBlock = new Date(transactionList.decayStartBlock)
|
||||
this.pending = false
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@ -19,6 +19,7 @@
|
||||
:pageSize="5"
|
||||
:timestamp="timestamp"
|
||||
:transaction-count="transactionCount"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
@update-transactions="updateTransactions"
|
||||
/>
|
||||
<gdd-transaction-list-footer :count="transactionCount" />
|
||||
@ -53,6 +54,7 @@ export default {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
decayStartBlock: { type: Date, default: null },
|
||||
},
|
||||
methods: {
|
||||
updateTransactions(pagination) {
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
</b-row>
|
||||
|
||||
<!-- Decay -->
|
||||
<b-row v-if="decay && !decay.decayStartBlock">
|
||||
<b-row v-if="decay && !decayStartBlock">
|
||||
<b-col cols="5">
|
||||
<div class="text-right">
|
||||
<b-icon
|
||||
@ -98,11 +98,16 @@
|
||||
</b-col>
|
||||
<b-col cols="7">
|
||||
<div class="gdd-transaction-list-item-decay">
|
||||
<decay-information v-if="decay" decaytyp="short" :decay="decay" />
|
||||
<decay-information
|
||||
v-if="decay"
|
||||
decaytyp="short"
|
||||
:decay="decay"
|
||||
:decayStartBlock="decayStartBlock"
|
||||
/>
|
||||
</div>
|
||||
</b-col>
|
||||
</b-row>
|
||||
<b-row v-if="decay && decay.decayStartBlock">
|
||||
<b-row v-if="decay && decayStartBlock">
|
||||
<b-col cols="5">
|
||||
<div class="text-right">
|
||||
<b-icon
|
||||
@ -175,6 +180,7 @@ export default {
|
||||
timestamp: { type: Number, default: 0 },
|
||||
transactionCount: { type: Number, default: 0 },
|
||||
showPagination: { type: Boolean, default: false },
|
||||
decayStartBlock: { type: Date, default: null },
|
||||
},
|
||||
methods: {
|
||||
updateTransactions() {
|
||||
|
||||
@ -41,6 +41,7 @@ export default {
|
||||
default: () => [],
|
||||
},
|
||||
transactionCount: { type: Number, default: 0 },
|
||||
decayStartBlock: { type: Date, default: null },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user