mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add GDT in Components
This commit is contained in:
parent
ce558205ee
commit
ff5485e598
@ -27,7 +27,9 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
<div>
|
<div>
|
||||||
<b-icon icon="layers" class="mr-3" :variant="badge ? 'success' : 'light'"></b-icon>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -36,6 +38,7 @@
|
|||||||
export default {
|
export default {
|
||||||
name: 'GdtAmount',
|
name: 'GdtAmount',
|
||||||
props: {
|
props: {
|
||||||
|
GdtBalance: { type: Number, required: true },
|
||||||
badge: { type: Boolean, default: false },
|
badge: { type: Boolean, default: false },
|
||||||
showStatus: { type: Boolean, default: false },
|
showStatus: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
<b-row class="d-lg-flex" cols="12">
|
<b-row class="d-lg-flex" cols="12">
|
||||||
<!-- ContentHeader -->
|
<!-- ContentHeader -->
|
||||||
<b-col>
|
<b-col>
|
||||||
<content-header :balance="balance" />
|
<content-header :balance="balance" :GdtBalance="GdtBalance" />
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
</b-col>
|
</b-col>
|
||||||
@ -57,7 +57,7 @@
|
|||||||
<router-view
|
<router-view
|
||||||
ref="router-view"
|
ref="router-view"
|
||||||
:balance="balance"
|
:balance="balance"
|
||||||
:gdt-balance="GdtBalance"
|
:GdtBalance="GdtBalance"
|
||||||
:transactions="transactions"
|
:transactions="transactions"
|
||||||
:transactionCount="transactionCount"
|
:transactionCount="transactionCount"
|
||||||
:transactionLinkCount="transactionLinkCount"
|
:transactionLinkCount="transactionLinkCount"
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
</b-col>
|
</b-col>
|
||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div>
|
<div>
|
||||||
<gdt-amount />
|
<gdt-amount :GdtBalance="GdtBalance" />
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div>
|
<div>
|
||||||
<router-link to="gdt">
|
<router-link to="gdt">
|
||||||
<gdt-amount />
|
<gdt-amount :GdtBalance="GdtBalance" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
@ -60,7 +60,7 @@
|
|||||||
<b-col cols="6">
|
<b-col cols="6">
|
||||||
<div>
|
<div>
|
||||||
<router-link to="gdt">
|
<router-link to="gdt">
|
||||||
<gdt-amount :badge="true" :showStatus="true" />
|
<gdt-amount :badge="true" :showStatus="true" :GdtBalance="GdtBalance" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</b-col>
|
</b-col>
|
||||||
@ -102,6 +102,7 @@ export default {
|
|||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
balance: { type: Number, required: true },
|
balance: { type: Number, required: true },
|
||||||
|
GdtBalance: { type: Number, required: true },
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user