mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
50 lines
1.2 KiB
Vue
50 lines
1.2 KiB
Vue
<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" :memo="memo" />
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import DecayInformationLong from '../DecayInformations/DecayInformation-Long'
|
|
import DecayInformationBeforeStartblock from '../DecayInformations/DecayInformation-BeforeStartblock'
|
|
import DecayInformationDecayStartblock from '../DecayInformations/DecayInformation-DecayStartblock'
|
|
import CONFIG from '@/config'
|
|
|
|
export default {
|
|
components: {
|
|
DecayInformationLong,
|
|
DecayInformationBeforeStartblock,
|
|
DecayInformationDecayStartblock,
|
|
},
|
|
props: {
|
|
amount: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
decay: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
memo: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
typeId: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
computed: {
|
|
isStartBlock() {
|
|
return new Date(this.decay.start).getTime() === CONFIG.DECAY_START_TIME.getTime()
|
|
},
|
|
},
|
|
}
|
|
</script>
|