mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge pull request #1613 from gradido/1594-Show-if-a-transaction-was-created-by-link
1554 frontend transaction link summary
This commit is contained in:
commit
66e9f9b97c
@ -9,12 +9,14 @@ export class TransactionList {
|
|||||||
balance: Decimal,
|
balance: Decimal,
|
||||||
transactions: Transaction[],
|
transactions: Transaction[],
|
||||||
count: number,
|
count: number,
|
||||||
|
linkCount: number,
|
||||||
balanceGDT?: number | null,
|
balanceGDT?: number | null,
|
||||||
decayStartBlock: Date = CONFIG.DECAY_START_TIME,
|
decayStartBlock: Date = CONFIG.DECAY_START_TIME,
|
||||||
) {
|
) {
|
||||||
this.balance = balance
|
this.balance = balance
|
||||||
this.transactions = transactions
|
this.transactions = transactions
|
||||||
this.count = count
|
this.count = count
|
||||||
|
this.linkCount = linkCount
|
||||||
this.balanceGDT = balanceGDT || null
|
this.balanceGDT = balanceGDT || null
|
||||||
this.decayStartBlock = decayStartBlock
|
this.decayStartBlock = decayStartBlock
|
||||||
}
|
}
|
||||||
@ -25,6 +27,9 @@ export class TransactionList {
|
|||||||
@Field(() => Number)
|
@Field(() => Number)
|
||||||
count: number
|
count: number
|
||||||
|
|
||||||
|
@Field(() => Number)
|
||||||
|
linkCount: number
|
||||||
|
|
||||||
@Field(() => Decimal)
|
@Field(() => Decimal)
|
||||||
balance: Decimal
|
balance: Decimal
|
||||||
|
|
||||||
|
|||||||
@ -170,7 +170,7 @@ export class TransactionResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!lastTransaction) {
|
if (!lastTransaction) {
|
||||||
return new TransactionList(new Decimal(0), [], 0, balanceGDT)
|
return new TransactionList(new Decimal(0), [], 0, 0, balanceGDT)
|
||||||
}
|
}
|
||||||
|
|
||||||
// find transactions
|
// find transactions
|
||||||
@ -204,7 +204,7 @@ export class TransactionResolver {
|
|||||||
const transactions: Transaction[] = []
|
const transactions: Transaction[] = []
|
||||||
|
|
||||||
const transactionLinkRepository = getCustomRepository(TransactionLinkRepository)
|
const transactionLinkRepository = getCustomRepository(TransactionLinkRepository)
|
||||||
const { sumHoldAvailableAmount, sumAmount, lastDate, firstDate } =
|
const { sumHoldAvailableAmount, sumAmount, lastDate, firstDate, transactionLinkcount } =
|
||||||
await transactionLinkRepository.summary(user.id, now)
|
await transactionLinkRepository.summary(user.id, now)
|
||||||
|
|
||||||
// decay & link transactions
|
// decay & link transactions
|
||||||
@ -217,9 +217,9 @@ export class TransactionResolver {
|
|||||||
transactions.push(
|
transactions.push(
|
||||||
virtualLinkTransaction(
|
virtualLinkTransaction(
|
||||||
lastTransaction.balance.minus(sumHoldAvailableAmount.toString()),
|
lastTransaction.balance.minus(sumHoldAvailableAmount.toString()),
|
||||||
sumAmount,
|
sumAmount.mul(-1),
|
||||||
sumHoldAvailableAmount,
|
sumHoldAvailableAmount.mul(-1),
|
||||||
sumHoldAvailableAmount.minus(sumAmount.toString()),
|
sumHoldAvailableAmount.minus(sumAmount.toString()).mul(-1),
|
||||||
firstDate || now,
|
firstDate || now,
|
||||||
lastDate || now,
|
lastDate || now,
|
||||||
self,
|
self,
|
||||||
@ -244,6 +244,7 @@ export class TransactionResolver {
|
|||||||
),
|
),
|
||||||
transactions,
|
transactions,
|
||||||
userTransactionsCount,
|
userTransactionsCount,
|
||||||
|
transactionLinkcount,
|
||||||
balanceGDT,
|
balanceGDT,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,13 +12,15 @@ export class TransactionLinkRepository extends Repository<dbTransactionLink> {
|
|||||||
sumAmount: Decimal
|
sumAmount: Decimal
|
||||||
lastDate: Date | null
|
lastDate: Date | null
|
||||||
firstDate: Date | null
|
firstDate: Date | null
|
||||||
|
transactionLinkcount: number
|
||||||
}> {
|
}> {
|
||||||
const { sumHoldAvailableAmount, sumAmount, lastDate, firstDate } =
|
const { sumHoldAvailableAmount, sumAmount, lastDate, firstDate, count } =
|
||||||
await this.createQueryBuilder('transactionLinks')
|
await this.createQueryBuilder('transactionLinks')
|
||||||
.select('SUM(transactionLinks.holdAvailableAmount)', 'sumHoldAvailableAmount')
|
.select('SUM(transactionLinks.holdAvailableAmount)', 'sumHoldAvailableAmount')
|
||||||
.addSelect('SUM(transactionLinks.amount)', 'sumAmount')
|
.addSelect('SUM(transactionLinks.amount)', 'sumAmount')
|
||||||
.addSelect('MAX(transactionLinks.validUntil)', 'lastDate')
|
.addSelect('MAX(transactionLinks.validUntil)', 'lastDate')
|
||||||
.addSelect('MIN(transactionLinks.createdAt)', 'firstDate')
|
.addSelect('MIN(transactionLinks.createdAt)', 'firstDate')
|
||||||
|
.addSelect('COUNT(*)', 'count')
|
||||||
.where('transactionLinks.userId = :userId', { userId })
|
.where('transactionLinks.userId = :userId', { userId })
|
||||||
.andWhere('transactionLinks.redeemedAt is NULL')
|
.andWhere('transactionLinks.redeemedAt is NULL')
|
||||||
.andWhere('transactionLinks.validUntil > :date', { date })
|
.andWhere('transactionLinks.validUntil > :date', { date })
|
||||||
@ -31,6 +33,7 @@ export class TransactionLinkRepository extends Repository<dbTransactionLink> {
|
|||||||
sumAmount: sumAmount ? new Decimal(sumAmount) : new Decimal(0),
|
sumAmount: sumAmount ? new Decimal(sumAmount) : new Decimal(0),
|
||||||
lastDate: lastDate || null,
|
lastDate: lastDate || null,
|
||||||
firstDate: firstDate || null,
|
firstDate: firstDate || null,
|
||||||
|
transactionLinkcount: count || 0,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,14 @@
|
|||||||
|
<template>
|
||||||
|
<div class="collapse-links-list">
|
||||||
|
<div class="d-flex">
|
||||||
|
<div class="text-center pb-3 gradido-max-width">
|
||||||
|
<b>{{ $t('links-list.header') }}</b>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'CollapseLinksList',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="decayinformation-short">
|
<div class="decayinformation-short">
|
||||||
<span v-if="decay.decay">{{ decay.decay | amount }}</span>
|
<span v-if="decay.decay">{{ decay.decay | GDD }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -41,6 +41,14 @@
|
|||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template #TRANSACTION_LINK>
|
||||||
|
<transaction-link
|
||||||
|
class="list-group-item"
|
||||||
|
v-bind="transactions[index]"
|
||||||
|
:transactionLinkCount="transactionLinkCount"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
</transaction-list-item>
|
</transaction-list-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -63,6 +71,7 @@ import TransactionDecay from '@/components/Transactions/TransactionDecay'
|
|||||||
import TransactionSend from '@/components/Transactions/TransactionSend'
|
import TransactionSend from '@/components/Transactions/TransactionSend'
|
||||||
import TransactionReceive from '@/components/Transactions/TransactionReceive'
|
import TransactionReceive from '@/components/Transactions/TransactionReceive'
|
||||||
import TransactionCreation from '@/components/Transactions/TransactionCreation'
|
import TransactionCreation from '@/components/Transactions/TransactionCreation'
|
||||||
|
import TransactionLink from '@/components/Transactions/TransactionLink'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'gdd-transaction-list',
|
name: 'gdd-transaction-list',
|
||||||
@ -73,6 +82,7 @@ export default {
|
|||||||
TransactionSend,
|
TransactionSend,
|
||||||
TransactionReceive,
|
TransactionReceive,
|
||||||
TransactionCreation,
|
TransactionCreation,
|
||||||
|
TransactionLink,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -85,6 +95,7 @@ export default {
|
|||||||
pageSize: { type: Number, default: 25 },
|
pageSize: { type: Number, default: 25 },
|
||||||
timestamp: { type: Number, default: 0 },
|
timestamp: { type: Number, default: 0 },
|
||||||
transactionCount: { type: Number, default: 0 },
|
transactionCount: { type: Number, default: 0 },
|
||||||
|
transactionLinkCount: { type: Number, default: 0 },
|
||||||
showPagination: { type: Boolean, default: false },
|
showPagination: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
23
frontend/src/components/TransactionRows/LinkCountRow.vue
Normal file
23
frontend/src/components/TransactionRows/LinkCountRow.vue
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="link-count-row">
|
||||||
|
<b-row>
|
||||||
|
<b-col cols="5">
|
||||||
|
<div class="text-right">{{ $t('gdd_per_link.links_count') }}</div>
|
||||||
|
</b-col>
|
||||||
|
<b-col cols="7">
|
||||||
|
<div class="gdd-transaction-list-link-count">{{ count }}</div>
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'LinkCountRow',
|
||||||
|
props: {
|
||||||
|
count: {
|
||||||
|
type: Number,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -60,42 +60,37 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
required: true,
|
||||||
balance: {
|
|
||||||
type: String,
|
|
||||||
},
|
},
|
||||||
balanceDate: {
|
balanceDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decay: {
|
decay: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
required: true,
|
||||||
id: {
|
|
||||||
type: Number,
|
|
||||||
},
|
},
|
||||||
linkedUser: {
|
linkedUser: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
memo: {
|
memo: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
typeId: {
|
typeId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
properties: {
|
decayStartBlock: {
|
||||||
type: Object,
|
type: Date,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decayStartBlock: { type: Date },
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
isStartBlock() {
|
|
||||||
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -43,12 +43,15 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
balance: {
|
balance: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decay: {
|
decay: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
70
frontend/src/components/Transactions/TransactionLink.vue
Normal file
70
frontend/src/components/Transactions/TransactionLink.vue
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<template>
|
||||||
|
<div class="transaction-slot-link">
|
||||||
|
<div @click="visible = !visible">
|
||||||
|
<!-- Collaps Icon -->
|
||||||
|
<collapse-icon class="text-right" :visible="visible" />
|
||||||
|
<div>
|
||||||
|
<b-row>
|
||||||
|
<!-- ICON -->
|
||||||
|
<b-col cols="1">
|
||||||
|
<type-icon color="text-danger" icon="link45deg" />
|
||||||
|
</b-col>
|
||||||
|
|
||||||
|
<b-col cols="11">
|
||||||
|
<!-- Amount / Name || Text -->
|
||||||
|
<amount-and-name-row :amount="amount" :text="$t('gdd_per_link.links_sum')" />
|
||||||
|
|
||||||
|
<!-- Count Links -->
|
||||||
|
<link-count-row :count="transactionLinkCount" />
|
||||||
|
|
||||||
|
<!-- Decay -->
|
||||||
|
<decay-row :decay="decay" />
|
||||||
|
</b-col>
|
||||||
|
</b-row>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<b-collapse :class="visible ? 'bg-secondary' : ''" class="pb-4 pt-5" v-model="visible">
|
||||||
|
<collapse-links-list />
|
||||||
|
</b-collapse>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import CollapseIcon from '../TransactionRows/CollapseIcon'
|
||||||
|
import TypeIcon from '../TransactionRows/TypeIcon'
|
||||||
|
import AmountAndNameRow from '../TransactionRows/AmountAndNameRow'
|
||||||
|
import LinkCountRow from '../TransactionRows/LinkCountRow'
|
||||||
|
import DecayRow from '../TransactionRows/DecayRow'
|
||||||
|
import CollapseLinksList from '../DecayInformations/CollapseLinksList'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'TransactionSlotLink',
|
||||||
|
components: {
|
||||||
|
CollapseIcon,
|
||||||
|
TypeIcon,
|
||||||
|
AmountAndNameRow,
|
||||||
|
LinkCountRow,
|
||||||
|
DecayRow,
|
||||||
|
CollapseLinksList,
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
amount: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
decay: {
|
||||||
|
type: Object,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
transactionLinkCount: {
|
||||||
|
type: Number,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@ -61,39 +61,36 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
required: true,
|
||||||
balance: {
|
|
||||||
type: String,
|
|
||||||
},
|
},
|
||||||
balanceDate: {
|
balanceDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decay: {
|
decay: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
required: true,
|
||||||
id: {
|
|
||||||
type: Number,
|
|
||||||
},
|
},
|
||||||
linkedUser: {
|
linkedUser: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
memo: {
|
memo: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
typeId: {
|
typeId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
decayStartBlock: { type: Date },
|
decayStartBlock: {
|
||||||
|
type: Date,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
isStartBlock() {
|
|
||||||
return new Date(this.decay.start).getTime() === this.decayStartBlock.getTime()
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -61,29 +61,32 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
amount: {
|
amount: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
required: true,
|
||||||
balance: {
|
|
||||||
type: String,
|
|
||||||
},
|
},
|
||||||
balanceDate: {
|
balanceDate: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decay: {
|
decay: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
required: true,
|
||||||
id: {
|
|
||||||
type: Number,
|
|
||||||
},
|
},
|
||||||
linkedUser: {
|
linkedUser: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
memo: {
|
memo: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
typeId: {
|
typeId: {
|
||||||
type: String,
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
decayStartBlock: {
|
||||||
|
type: Date,
|
||||||
|
required: true,
|
||||||
},
|
},
|
||||||
decayStartBlock: { type: Date },
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -57,6 +57,7 @@ export const transactionsQuery = gql`
|
|||||||
) {
|
) {
|
||||||
balanceGDT
|
balanceGDT
|
||||||
count
|
count
|
||||||
|
linkCount
|
||||||
balance
|
balance
|
||||||
decayStartBlock
|
decayStartBlock
|
||||||
transactions {
|
transactions {
|
||||||
|
|||||||
@ -155,6 +155,7 @@ describe('DashboardLayoutGdd', () => {
|
|||||||
transactionList: {
|
transactionList: {
|
||||||
balanceGDT: 100,
|
balanceGDT: 100,
|
||||||
count: 4,
|
count: 4,
|
||||||
|
linkCount: 8,
|
||||||
balance: 1450,
|
balance: 1450,
|
||||||
decay: 1250,
|
decay: 1250,
|
||||||
transactions: ['transaction', 'transaction', 'transaction', 'transaction'],
|
transactions: ['transaction', 'transaction', 'transaction', 'transaction'],
|
||||||
@ -198,6 +199,10 @@ describe('DashboardLayoutGdd', () => {
|
|||||||
it('updates transaction count', () => {
|
it('updates transaction count', () => {
|
||||||
expect(wrapper.vm.transactionCount).toBe(4)
|
expect(wrapper.vm.transactionCount).toBe(4)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('updates transaction link count', () => {
|
||||||
|
expect(wrapper.vm.transactionLinkCount).toBe(8)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('update transactions returns error', () => {
|
describe('update transactions returns error', () => {
|
||||||
|
|||||||
@ -24,6 +24,7 @@
|
|||||||
:gdt-balance="GdtBalance"
|
:gdt-balance="GdtBalance"
|
||||||
:transactions="transactions"
|
:transactions="transactions"
|
||||||
:transactionCount="transactionCount"
|
:transactionCount="transactionCount"
|
||||||
|
:transactionLinkCount="transactionLinkCount"
|
||||||
:pending="pending"
|
:pending="pending"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
@update-balance="updateBalance"
|
@update-balance="updateBalance"
|
||||||
@ -59,6 +60,7 @@ export default {
|
|||||||
transactions: [],
|
transactions: [],
|
||||||
bookedBalance: 0,
|
bookedBalance: 0,
|
||||||
transactionCount: 0,
|
transactionCount: 0,
|
||||||
|
transactionLinkCount: 0,
|
||||||
pending: true,
|
pending: true,
|
||||||
visible: false,
|
visible: false,
|
||||||
decayStartBlock: new Date(),
|
decayStartBlock: new Date(),
|
||||||
@ -99,6 +101,7 @@ export default {
|
|||||||
this.transactions = transactionList.transactions
|
this.transactions = transactionList.transactions
|
||||||
this.balance = Number(transactionList.balance)
|
this.balance = Number(transactionList.balance)
|
||||||
this.transactionCount = transactionList.count
|
this.transactionCount = transactionList.count
|
||||||
|
this.transactionLinkCount = transactionList.linkCount
|
||||||
this.decayStartBlock = new Date(transactionList.decayStartBlock)
|
this.decayStartBlock = new Date(transactionList.decayStartBlock)
|
||||||
this.pending = false
|
this.pending = false
|
||||||
})
|
})
|
||||||
|
|||||||
@ -106,6 +106,8 @@
|
|||||||
"decay-14-day": "Vergänglichkeit für 14 Tage",
|
"decay-14-day": "Vergänglichkeit für 14 Tage",
|
||||||
"header": "Gradidos versenden per Link",
|
"header": "Gradidos versenden per Link",
|
||||||
"link-copied": "Link wurde in die Zwischenablage kopiert",
|
"link-copied": "Link wurde in die Zwischenablage kopiert",
|
||||||
|
"links_count": "Aktive Links",
|
||||||
|
"links_sum": "Summe deiner versendeten Gradidos",
|
||||||
"not-copied": "Konnte den Link nicht kopieren: {err}",
|
"not-copied": "Konnte den Link nicht kopieren: {err}",
|
||||||
"sentence_1": "Wähle einen Betrag aus, welchen du per Link versenden möchtest. Du kannst auch noch eine Nachricht eintragen. Beim Klick „jetzt generieren“ wird ein Link erstellt, den du versenden kannst.",
|
"sentence_1": "Wähle einen Betrag aus, welchen du per Link versenden möchtest. Du kannst auch noch eine Nachricht eintragen. Beim Klick „jetzt generieren“ wird ein Link erstellt, den du versenden kannst.",
|
||||||
"sentence_2": "Der Link ist 14 Tage gültig!",
|
"sentence_2": "Der Link ist 14 Tage gültig!",
|
||||||
@ -132,6 +134,9 @@
|
|||||||
},
|
},
|
||||||
"imprint": "Impressum",
|
"imprint": "Impressum",
|
||||||
"language": "Sprache",
|
"language": "Sprache",
|
||||||
|
"links-list": {
|
||||||
|
"header": "Liste deiner aktiven Links"
|
||||||
|
},
|
||||||
"login": "Anmeldung",
|
"login": "Anmeldung",
|
||||||
"logout": "Abmelden",
|
"logout": "Abmelden",
|
||||||
"members_area": "Mitgliederbereich",
|
"members_area": "Mitgliederbereich",
|
||||||
|
|||||||
@ -106,6 +106,8 @@
|
|||||||
"decay-14-day": "Decay for 14 days",
|
"decay-14-day": "Decay for 14 days",
|
||||||
"header": "Send Gradidos via link",
|
"header": "Send Gradidos via link",
|
||||||
"link-copied": "Link copied to clipboard",
|
"link-copied": "Link copied to clipboard",
|
||||||
|
"links_count": "Active links",
|
||||||
|
"links_sum": "Total of your sent Gradidos",
|
||||||
"not-copied": "Could not copy link: {err}",
|
"not-copied": "Could not copy link: {err}",
|
||||||
"sentence_1": "Select an amount that you would like to send via link. You can also enter a message. Click 'Generate now' to create a link that you can share.",
|
"sentence_1": "Select an amount that you would like to send via link. You can also enter a message. Click 'Generate now' to create a link that you can share.",
|
||||||
"sentence_2": "The link is valid for 14 days!",
|
"sentence_2": "The link is valid for 14 days!",
|
||||||
@ -132,6 +134,9 @@
|
|||||||
},
|
},
|
||||||
"imprint": "Legal notice",
|
"imprint": "Legal notice",
|
||||||
"language": "Language",
|
"language": "Language",
|
||||||
|
"links-list": {
|
||||||
|
"header": "List of your active links"
|
||||||
|
},
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"logout": "Logout",
|
"logout": "Logout",
|
||||||
"members_area": "Members area",
|
"members_area": "Members area",
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
:timestamp="timestamp"
|
:timestamp="timestamp"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
:transaction-count="transactionCount"
|
:transaction-count="transactionCount"
|
||||||
|
:transactionLinkCount="transactionLinkCount"
|
||||||
@update-transactions="updateTransactions"
|
@update-transactions="updateTransactions"
|
||||||
/>
|
/>
|
||||||
<gdd-transaction-list-footer :count="transactionCount" />
|
<gdd-transaction-list-footer :count="transactionCount" />
|
||||||
@ -51,6 +52,7 @@ export default {
|
|||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
transactionCount: { type: Number, default: 0 },
|
transactionCount: { type: Number, default: 0 },
|
||||||
|
transactionLinkCount: { type: Number, default: 0 },
|
||||||
pending: {
|
pending: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
<gdd-transaction-list
|
<gdd-transaction-list
|
||||||
:timestamp="timestamp"
|
:timestamp="timestamp"
|
||||||
:transactionCount="transactionCount"
|
:transactionCount="transactionCount"
|
||||||
|
:transactionLinkCount="transactionLinkCount"
|
||||||
:transactions="transactions"
|
:transactions="transactions"
|
||||||
:show-pagination="true"
|
:show-pagination="true"
|
||||||
:decayStartBlock="decayStartBlock"
|
:decayStartBlock="decayStartBlock"
|
||||||
@ -42,6 +43,7 @@ export default {
|
|||||||
default: () => [],
|
default: () => [],
|
||||||
},
|
},
|
||||||
transactionCount: { type: Number, default: 0 },
|
transactionCount: { type: Number, default: 0 },
|
||||||
|
transactionLinkCount: { type: Number, default: 0 },
|
||||||
decayStartBlock: { type: Date },
|
decayStartBlock: { type: Date },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user