add GDT in Components

This commit is contained in:
ogerly 2022-11-28 11:23:37 +01:00
parent ce558205ee
commit ff5485e598
3 changed files with 10 additions and 6 deletions

View File

@ -27,7 +27,9 @@
</b-row>
<div>
<b-icon icon="layers" class="mr-3" :variant="badge ? 'success' : 'light'"></b-icon>
<span :class="badge ? 'text-success' : 'text-light'">{{ $t('GDT') }}</span>
<span :class="badge ? 'text-success' : 'text-light'">
{{ $n(GdtBalance, 'decimal') }} {{ $t('GDT') }}
</span>
</div>
</div>
</div>
@ -36,6 +38,7 @@
export default {
name: 'GdtAmount',
props: {
GdtBalance: { type: Number, required: true },
badge: { type: Boolean, default: false },
showStatus: { type: Boolean, default: false },
},

View File

@ -38,7 +38,7 @@
<b-row class="d-lg-flex" cols="12">
<!-- ContentHeader -->
<b-col>
<content-header :balance="balance" />
<content-header :balance="balance" :GdtBalance="GdtBalance" />
</b-col>
</b-row>
</b-col>
@ -57,7 +57,7 @@
<router-view
ref="router-view"
:balance="balance"
:gdt-balance="GdtBalance"
:GdtBalance="GdtBalance"
:transactions="transactions"
:transactionCount="transactionCount"
:transactionLinkCount="transactionLinkCount"

View File

@ -25,7 +25,7 @@
</b-col>
<b-col cols="6">
<div>
<gdt-amount />
<gdt-amount :GdtBalance="GdtBalance" />
</div>
</b-col>
</b-row>
@ -42,7 +42,7 @@
<b-col cols="6">
<div>
<router-link to="gdt">
<gdt-amount />
<gdt-amount :GdtBalance="GdtBalance" />
</router-link>
</div>
</b-col>
@ -60,7 +60,7 @@
<b-col cols="6">
<div>
<router-link to="gdt">
<gdt-amount :badge="true" :showStatus="true" />
<gdt-amount :badge="true" :showStatus="true" :GdtBalance="GdtBalance" />
</router-link>
</div>
</b-col>
@ -102,6 +102,7 @@ export default {
},
props: {
balance: { type: Number, required: true },
GdtBalance: { type: Number, required: true },
},
computed: {