diff --git a/frontend/src/components/Transactions/TransactionReceive.vue b/frontend/src/components/Transactions/TransactionReceive.vue
index d1947a91a..f83c84e53 100644
--- a/frontend/src/components/Transactions/TransactionReceive.vue
+++ b/frontend/src/components/Transactions/TransactionReceive.vue
@@ -13,7 +13,12 @@
-
+
@@ -86,6 +91,10 @@ export default {
type: Date,
required: true,
},
+ transactionLinkId: {
+ type: Number,
+ required: false,
+ },
},
data() {
return {
diff --git a/frontend/src/components/Transactions/TransactionSend.vue b/frontend/src/components/Transactions/TransactionSend.vue
index dfe50225a..2f9ef54d2 100644
--- a/frontend/src/components/Transactions/TransactionSend.vue
+++ b/frontend/src/components/Transactions/TransactionSend.vue
@@ -13,7 +13,12 @@
-
+
@@ -87,6 +92,10 @@ export default {
type: Date,
required: true,
},
+ transactionLinkId: {
+ type: Number,
+ required: false,
+ },
},
data() {
return {
diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js
index 60b929c6d..ecd8208b5 100644
--- a/frontend/src/graphql/queries.js
+++ b/frontend/src/graphql/queries.js
@@ -45,11 +45,16 @@ export const logout = gql`
export const transactionsQuery = gql`
query($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
transactionList(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
- balanceGDT
- count
- linkCount
- balance
- decayStartBlock
+ balance {
+ balance
+ decay
+ lastBookedBalance
+ balanceGDT
+ count
+ linkCount
+ decayStartBlock
+ lastBookedDate
+ }
transactions {
id
typeId
@@ -70,6 +75,7 @@ export const transactionsQuery = gql`
linkedUser {
email
}
+ transactionLinkId
}
}
}
diff --git a/frontend/src/layouts/DashboardLayout_gdd.spec.js b/frontend/src/layouts/DashboardLayout_gdd.spec.js
index ed2199a91..ac079b0f3 100644
--- a/frontend/src/layouts/DashboardLayout_gdd.spec.js
+++ b/frontend/src/layouts/DashboardLayout_gdd.spec.js
@@ -145,11 +145,13 @@ describe('DashboardLayoutGdd', () => {
apolloMock.mockResolvedValue({
data: {
transactionList: {
- balanceGDT: 100,
- count: 4,
- linkCount: 8,
- balance: 1450,
- decay: 1250,
+ balance: {
+ balanceGDT: 100,
+ count: 4,
+ linkCount: 8,
+ balance: 1450,
+ decay: 1250,
+ },
transactions: ['transaction', 'transaction', 'transaction', 'transaction'],
},
},
diff --git a/frontend/src/layouts/DashboardLayout_gdd.vue b/frontend/src/layouts/DashboardLayout_gdd.vue
index 9abcf42cf..de2c68bf0 100755
--- a/frontend/src/layouts/DashboardLayout_gdd.vue
+++ b/frontend/src/layouts/DashboardLayout_gdd.vue
@@ -103,12 +103,14 @@ export default {
data: { transactionList },
} = result
this.GdtBalance =
- transactionList.balanceGDT === null ? null : Number(transactionList.balanceGDT)
+ transactionList.balance.balanceGDT === null
+ ? null
+ : Number(transactionList.balance.balanceGDT)
this.transactions = transactionList.transactions
- this.balance = Number(transactionList.balance)
- this.transactionCount = transactionList.count
- this.transactionLinkCount = transactionList.linkCount
- this.decayStartBlock = new Date(transactionList.decayStartBlock)
+ this.balance = Number(transactionList.balance.balance)
+ this.transactionCount = transactionList.balance.count
+ this.transactionLinkCount = transactionList.balance.linkCount
+ this.decayStartBlock = new Date(transactionList.balance.decayStartBlock)
this.pending = false
})
.catch((error) => {
diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json
index 35155ca79..e8994a2e9 100644
--- a/frontend/src/locales/de.json
+++ b/frontend/src/locales/de.json
@@ -100,7 +100,6 @@
"decay-14-day": "Vergänglichkeit für 14 Tage",
"delete-the-link": "Den Link löschen?",
"deleted": "Der Link wurde gelöscht!",
- "expired": "Abgelaufen",
"has-account": "Du besitzt bereits ein Gradido Konto",
"header": "Gradidos versenden per Link",
"link-copied": "Link wurde in die Zwischenablage kopiert",
@@ -116,8 +115,10 @@
"redeem-text": "Willst du den Betrag jetzt einlösen?",
"redeemed": "Erfolgreich eingelöst! Deinem Konto wurden {n} GDD gutgeschrieben.",
"redeemed-at": "Der Link wurde bereits am {date} eingelöst.",
+ "redeemed-title": "eingelöst",
"to-login": "Log dich ein",
- "to-register": "Registriere ein neues Konto"
+ "to-register": "Registriere ein neues Konto",
+ "valid_until": "Gültig bis"
},
"gdt": {
"calculation": "Berechnung der GradidoTransform",
@@ -249,5 +250,6 @@
},
"transaction-link": {
"send_you": "sendet dir"
- }
+ },
+ "via_link": "über einen Link"
}
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index af54f3b50..c586bbe46 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -100,7 +100,6 @@
"decay-14-day": "Decay for 14 days",
"delete-the-link": "Delete the link?",
"deleted": "The link was deleted!",
- "expired": "Expired",
"has-account": "You already have a Gradido account",
"header": "Send Gradidos via link",
"link-copied": "Link copied to clipboard",
@@ -116,8 +115,10 @@
"redeem-text": "Do you want to redeem the amount now?",
"redeemed": "Successfully redeemed! Your account has been credited with {n} GDD.",
"redeemed-at": "The link was already redeemed on {date}.",
+ "redeemed-title": "redeemed",
"to-login": "Log in",
- "to-register": "Register a new account"
+ "to-register": "Register a new account",
+ "valid_until": "Valid until"
},
"gdt": {
"calculation": "Calculation of GradidoTransform",
@@ -249,5 +250,6 @@
},
"transaction-link": {
"send_you": "wants to send you"
- }
+ },
+ "via_link": "via Link"
}
diff --git a/frontend/src/pages/ResetPassword.spec.js b/frontend/src/pages/ResetPassword.spec.js
index c43f71932..36efa0a11 100644
--- a/frontend/src/pages/ResetPassword.spec.js
+++ b/frontend/src/pages/ResetPassword.spec.js
@@ -150,13 +150,18 @@ describe('ResetPassword', () => {
describe('server response with error code > 10min', () => {
beforeEach(async () => {
- apolloMutationMock.mockRejectedValue({ message: '...Code is older than 10 minutes' })
+ jest.clearAllMocks()
+ apolloMutationMock.mockRejectedValue({
+ message: '...email was sent more than 23 hours and 10 minutes ago',
+ })
await wrapper.find('form').trigger('submit')
await flushPromises()
})
it('toasts an error message', () => {
- expect(toastErrorSpy).toHaveBeenCalledWith('...Code is older than 10 minutes')
+ expect(toastErrorSpy).toHaveBeenCalledWith(
+ '...email was sent more than 23 hours and 10 minutes ago',
+ )
})
it('router pushes to /forgot-password/resetPassword', () => {
diff --git a/frontend/src/pages/ResetPassword.vue b/frontend/src/pages/ResetPassword.vue
index 7771be5f6..a737246bc 100644
--- a/frontend/src/pages/ResetPassword.vue
+++ b/frontend/src/pages/ResetPassword.vue
@@ -108,7 +108,11 @@ export default {
})
.catch((error) => {
this.toastError(error.message)
- if (error.message.includes('Code is older than 10 minutes'))
+ if (
+ error.message.match(
+ /email was sent more than ([0-9]+ hours)?( and )?([0-9]+ minutes)? ago/,
+ )
+ )
this.$router.push('/forgot-password/resetPassword')
})
},