if decay is zero then this is displayed in writing otherwise the amount of decay is displayed

This commit is contained in:
ogerly 2021-08-24 12:18:49 +02:00 committed by Ulf Gebhardt
parent 69c35131c5
commit db0ddb7d85
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
4 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,12 @@
<template>
<div>
<span v-if="decaytyp === 'short'">
{{ decay ? ' -' + decay.balance + ' ' + decayStartBlockTextShort : '' }}
<div v-if="decay.balance > 0">
{{ decay ? ' -' + decay.balance + ' ' + decayStartBlockTextShort : '' }}
</div>
<div v-else>
{{ $t('decay.noDecay') }}
</div>
</span>
<div v-if="decaytyp === 'new'">

View File

@ -38,7 +38,8 @@
"sent":"Gesendet",
"created":"Geschöpft",
"fromCommunity":"Aus der Gemeinschaft",
"toCommunity":"An die Gemeinschaft"
"toCommunity":"An die Gemeinschaft",
"noDecay": "Keine Vergänglichkeit"
},
"form": {
"cancel": "Abbrechen",

View File

@ -38,7 +38,8 @@
"sent":"Sent",
"created":"Created",
"fromCommunity":"From the community",
"toCommunity":"To the community"
"toCommunity":"To the community",
"noDecay": "No Decay"
},
"form": {
"cancel":"Cancel",

View File

@ -13,7 +13,7 @@
class="text-right"
style="width: 95%; position: absolute"
>
<b-button v-if="decay.balance > 0" class="btn-sm">
<b-button class="btn-sm">
<b>i</b>
</b-button>
</div>
@ -53,7 +53,7 @@
</b-row>
<!-- Decay -->
<b-row v-if="decay && decay.balance > 0">
<b-row v-if="decay && !decay.decayStartBlock">
<div class="col-5 text-right">
<b-icon v-if="type != 'decay'" icon="droplet-half" height="15" class="mb-1" />
</div>