gradido/frontend/src/components/DecayInformations/DecayInformation-Decay.vue
MateuszMichalowski 0f134c8a15
fix(frontend): migration feedback fixes (#3359)
* fix(frontend): fixes after feedback

* fix(frontend): fixes after feedback

* fix(frontend): fixes after feedback
2024-08-26 08:41:28 +02:00

52 lines
1.1 KiB
Vue

<template>
<div class="decayinformation-decay">
<div class="mb-3 d-flex align-items-center">
<IBiDropletHalf class="me-2" />
<b>{{ $t('decay.calculation_decay') }}</b>
</div>
<BRow>
<BCol>
<BRow>
<BCol cols="12" lg="4" md="4">
<div>{{ $t('decay.decay') }}</div>
</BCol>
<BCol offset="1" offset-md="0" offset-lg="0">
<div>
{{ $filters.GDD(previousBalance) }}
{{ decay === '0' ? $t('math.minus') : '' }}
{{ $filters.GDD(decay) }} {{ $t('math.equal') }}
<b>{{ $filters.GDD(balance) }}</b>
</div>
</BCol>
</BRow>
</BCol>
</BRow>
</div>
</template>
<script>
export default {
name: 'DecayInformationDecay',
props: {
balance: {
type: String,
required: true,
},
decay: {
type: String,
required: true,
},
previousBalance: {
type: String,
required: true,
},
},
}
</script>
<style scoped lang="scss">
:deep(svg.me-2) {
width: 1rem;
height: 1rem;
}
</style>