mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
81 lines
2.0 KiB
Vue
81 lines
2.0 KiB
Vue
<template>
|
|
<div class="pb-4">
|
|
<b-tabs content-class="" justified>
|
|
<b-tab :title="`Gradido (${$n(balance, 'decimal')} GDD)`" class="px-4">
|
|
<p class="tab-tex">{{ $t('transaction.gdd-text') }}</p>
|
|
|
|
<gdd-transaction-list
|
|
:timestamp="timestamp"
|
|
:transactionCount="transactionCount"
|
|
:transactionLinkCount="transactionLinkCount"
|
|
:transactions="transactions"
|
|
:show-pagination="true"
|
|
:decayStartBlock="decayStartBlock"
|
|
@update-transactions="updateTransactions"
|
|
v-on="$listeners"
|
|
/>
|
|
</b-tab>
|
|
|
|
<b-tab :title="titelGdt" class="px-4">
|
|
<b-row class="mb-3">
|
|
<b-col>{{ $t('transaction.gdt-text') }}</b-col>
|
|
<b-col class="text-right">{{ `${$n(GdtBalance, 'decimal')} GDT` }}</b-col>
|
|
</b-row>
|
|
<gdt-transaction-list />
|
|
</b-tab>
|
|
</b-tabs>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import GddTransactionList from '@/components/GddTransactionList.vue'
|
|
import GdtTransactionList from '@/components/GdtTransactionList.vue'
|
|
|
|
export default {
|
|
name: 'Transactions',
|
|
components: {
|
|
GddTransactionList,
|
|
GdtTransactionList,
|
|
},
|
|
props: {
|
|
balance: { type: Number, default: 0 },
|
|
GdtBalance: { type: Number, default: 0 },
|
|
transactions: {
|
|
default: () => [],
|
|
},
|
|
transactionCount: { type: Number, default: 0 },
|
|
transactionLinkCount: { type: Number, default: 0 },
|
|
decayStartBlock: { type: Date },
|
|
},
|
|
data() {
|
|
return {
|
|
timestamp: Date.now(),
|
|
titelGdt: this.$t('gdt.gdt'),
|
|
}
|
|
},
|
|
methods: {
|
|
updateTransactions(pagination) {
|
|
this.$emit('update-transactions', pagination)
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.nav-tabs > li > a {
|
|
padding-top: 14px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.nav-tabs .nav-link {
|
|
background-color: rgba(204, 204, 204, 0.185);
|
|
}
|
|
.nav-tabs .nav-link.active {
|
|
background-color: rgb(248 249 254);
|
|
}
|
|
|
|
.tab-content {
|
|
padding-top: 25px;
|
|
border-left: 1px inset rgba(28, 110, 164, 0.1);
|
|
border-right: 1px inset rgba(28, 110, 164, 0.1);
|
|
}
|
|
</style>
|