missign change for startBlock implementation

# Conflicts:
#	frontend/src/components/Transactions/TransactionCreation.vue
#	frontend/src/components/Transactions/TransactionReceive.vue
#	frontend/src/components/Transactions/TransactionSend.vue
This commit is contained in:
Ulf Gebhardt 2022-03-04 15:23:09 +01:00
parent 0ec7caac42
commit bc81a9a40f
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 43 additions and 3 deletions

View File

@ -78,6 +78,12 @@
<b-collapse class="pb-4 pt-5" v-model="visible">
<decay-information-before-startblock v-if="decay.start === null" />
<decay-information-decay-startblock
v-else-if="isStartBlock"
:amount="amount"
:decay="decay"
:typeId="typeId"
/>
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
</b-collapse>
</div>
@ -87,6 +93,7 @@
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
import DecayInformationNoDecayTransaction from '../DecayInformations/DecayInformation-NoDecayTransaction'
export default {
name: 'slot-creation',
@ -94,6 +101,7 @@ export default {
DecayInformationShort,
DecayInformationLong,
DecayInformationBeforeStartblock,
DecayInformationNoDecayTransaction,
},
props: {
amount: {
@ -130,5 +138,10 @@ export default {
visible: false,
}
},
computed: {
isStartBlock() {
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
},
},
}
</script>

View File

@ -23,8 +23,9 @@
<b-row>
<b-col cols="5">
<div class="text-right">
<span class="gdd-transaction-list-item-operator"></span>
<span class="gdd-transaction-list-item-amount">
{{ $n(amount, 'decimal') }}
{{ $n(Number(amount) * -1, 'decimal') }}
</span>
</div>
</b-col>

View File

@ -81,6 +81,12 @@
<b-collapse class="pb-4 pt-5" v-model="visible">
<decay-information-before-startblock v-if="decay.start === null" />
<decay-information-decay-startblock
v-else-if="isStartBlock"
:amount="amount"
:decay="decay"
:typeId="typeId"
/>
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
</b-collapse>
</div>
@ -90,6 +96,7 @@
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
import DecayInformationNoDecayTransaction from '../DecayInformations/DecayInformation-NoDecayTransaction'
export default {
name: 'slot-receive',
@ -97,6 +104,7 @@ export default {
DecayInformationShort,
DecayInformationLong,
DecayInformationBeforeStartblock,
DecayInformationNoDecayTransaction,)
},
props: {
amount: {
@ -130,5 +138,10 @@ export default {
visible: false,
}
},
computed: {
isStartBlock() {
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
},
},
}
</script>

View File

@ -23,9 +23,9 @@
<b-row>
<b-col cols="5">
<div class="text-right">
<span class="gdd-transaction-list-item-operator"></span>
<span class="gdd-transaction-list-item-operator"></span>
<span class="gdd-transaction-list-item-amount">
{{ $n(amount, 'decimal') }}
{{ $n(Number(amount) * -1, 'decimal') }}
</span>
</div>
</b-col>
@ -78,6 +78,12 @@
<b-collapse class="pb-4 pt-5" v-model="visible">
<decay-information-before-startblock v-if="decay.start === null" />
<decay-information-decay-startblock
v-else-if="isStartBlock"
:amount="amount"
:decay="decay"
:typeId="typeId"
/>
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
</b-collapse>
</div>
@ -87,12 +93,14 @@
import DecayInformationShort from '../DecayInformations/DecayInformation-Short'
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
export default {
name: 'slot-send',
components: {
DecayInformationShort,
DecayInformationLong,
DecayInformationBeforeStartblock,
DecayInformationDecayStartblock,
},
props: {
amount: {
@ -126,5 +134,10 @@ export default {
visible: false,
}
},
computed: {
isStartBlock() {
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
},
},
}
</script>