mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add component for DecayInformations/DecayInformation for SEND, RECEIVE, CREATION typeId
This commit is contained in:
parent
e80d42a0b0
commit
26b4c8ecaf
@ -0,0 +1,48 @@
|
|||||||
|
<template>
|
||||||
|
<div class="decay-information-box">
|
||||||
|
<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" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
||||||
|
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
|
||||||
|
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
DecayInformationLong,
|
||||||
|
DecayInformationBeforeStartblock,
|
||||||
|
DecayInformationDecayStartblock,
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
amount: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
typeId: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
decayStartBlock: {
|
||||||
|
type: Date,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
isStartBlock() {
|
||||||
|
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -28,14 +28,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information-before-startblock v-if="decay.start === null" />
|
<decay-information
|
||||||
<decay-information-decay-startblock
|
|
||||||
v-else-if="isStartBlock"
|
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
:typeId="typeId"
|
||||||
|
:decay="decay"
|
||||||
|
:amount="amount"
|
||||||
|
:decayStartBlock="decayStartBlock"
|
||||||
/>
|
/>
|
||||||
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -47,9 +45,7 @@ import AmountAndName from '../TransactionRows/AmountAndName'
|
|||||||
import Memo from '../TransactionRows/Memo'
|
import Memo from '../TransactionRows/Memo'
|
||||||
import DateRow from '../TransactionRows/DateRow'
|
import DateRow from '../TransactionRows/DateRow'
|
||||||
import DecayRow from '../TransactionRows/DecayRow'
|
import DecayRow from '../TransactionRows/DecayRow'
|
||||||
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||||
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
|
|
||||||
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-creation',
|
name: 'slot-creation',
|
||||||
@ -60,9 +56,7 @@ export default {
|
|||||||
Memo,
|
Memo,
|
||||||
DateRow,
|
DateRow,
|
||||||
DecayRow,
|
DecayRow,
|
||||||
DecayInformationLong,
|
DecayInformation,
|
||||||
DecayInformationBeforeStartblock,
|
|
||||||
DecayInformationDecayStartblock,
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
|
|||||||
@ -28,14 +28,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information-before-startblock v-if="decay.start === null" />
|
<decay-information
|
||||||
<decay-information-decay-startblock
|
|
||||||
v-else-if="isStartBlock"
|
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
:typeId="typeId"
|
||||||
|
:decay="decay"
|
||||||
|
:amount="amount"
|
||||||
|
:decayStartBlock="decayStartBlock"
|
||||||
/>
|
/>
|
||||||
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -47,9 +45,7 @@ import AmountAndName from '../TransactionRows/AmountAndName'
|
|||||||
import Memo from '../TransactionRows/Memo'
|
import Memo from '../TransactionRows/Memo'
|
||||||
import DateRow from '../TransactionRows/DateRow'
|
import DateRow from '../TransactionRows/DateRow'
|
||||||
import DecayRow from '../TransactionRows/DecayRow'
|
import DecayRow from '../TransactionRows/DecayRow'
|
||||||
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||||
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
|
|
||||||
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-receive',
|
name: 'slot-receive',
|
||||||
@ -60,9 +56,7 @@ export default {
|
|||||||
Memo,
|
Memo,
|
||||||
DateRow,
|
DateRow,
|
||||||
DecayRow,
|
DecayRow,
|
||||||
DecayInformationLong,
|
DecayInformation,
|
||||||
DecayInformationBeforeStartblock,
|
|
||||||
DecayInformationDecayStartblock,
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
|
|||||||
@ -28,14 +28,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
||||||
<decay-information-before-startblock v-if="decay.start === null" />
|
<decay-information
|
||||||
<decay-information-decay-startblock
|
|
||||||
v-else-if="isStartBlock"
|
|
||||||
:amount="amount"
|
|
||||||
:decay="decay"
|
|
||||||
:typeId="typeId"
|
:typeId="typeId"
|
||||||
|
:decay="decay"
|
||||||
|
:amount="amount"
|
||||||
|
:decayStartBlock="decayStartBlock"
|
||||||
/>
|
/>
|
||||||
<decay-information-long v-else :amount="amount" :decay="decay" :typeId="typeId" />
|
|
||||||
</b-collapse>
|
</b-collapse>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -47,9 +45,8 @@ import AmountAndName from '../TransactionRows/AmountAndName'
|
|||||||
import Memo from '../TransactionRows/Memo'
|
import Memo from '../TransactionRows/Memo'
|
||||||
import DateRow from '../TransactionRows/DateRow'
|
import DateRow from '../TransactionRows/DateRow'
|
||||||
import DecayRow from '../TransactionRows/DecayRow'
|
import DecayRow from '../TransactionRows/DecayRow'
|
||||||
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
import DecayInformation from '../DecayInformations/DecayInformation'
|
||||||
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
|
|
||||||
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'slot-send',
|
name: 'slot-send',
|
||||||
components: {
|
components: {
|
||||||
@ -59,9 +56,7 @@ export default {
|
|||||||
Memo,
|
Memo,
|
||||||
DateRow,
|
DateRow,
|
||||||
DecayRow,
|
DecayRow,
|
||||||
DecayInformationLong,
|
DecayInformation,
|
||||||
DecayInformationBeforeStartblock,
|
|
||||||
DecayInformationDecayStartblock,
|
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
@ -95,10 +90,5 @@ export default {
|
|||||||
visible: false,
|
visible: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
isStartBlock() {
|
|
||||||
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user