From 00a6d15b5127c2093aa363cae26cb6c8c629bbdf Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 27 Apr 2023 10:06:54 +0200 Subject: [PATCH] error message for incorrect redemption link --- .../LinkInformations/RedeemInformation.vue | 5 +++-- .../components/LinkInformations/RedeemValid.vue | 8 +++++++- frontend/src/locales/de.json | 1 + frontend/src/locales/en.json | 1 + frontend/src/pages/TransactionLink.vue | 14 +++++++++----- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/LinkInformations/RedeemInformation.vue b/frontend/src/components/LinkInformations/RedeemInformation.vue index d287605a4..7a55c5c01 100644 --- a/frontend/src/components/LinkInformations/RedeemInformation.vue +++ b/frontend/src/components/LinkInformations/RedeemInformation.vue @@ -1,11 +1,12 @@ @@ -47,12 +48,13 @@ export default { return { linkData: { __typename: 'TransactionLink', - amount: '123.45', - memo: 'memo', + amount: '', + memo: '', user: { - firstName: 'Bibi', + firstName: '', }, deletedAt: null, + validLink: false, }, } }, @@ -67,13 +69,15 @@ export default { }, }) .then((result) => { + this.validLink = true this.linkData = result.data.queryTransactionLink if (this.linkData.__typename === 'ContributionLink' && this.$store.state.token) { this.mutationLink(this.linkData.amount) } }) - .catch((err) => { - this.toastError(err.message) + .catch(() => { + this.toastError(this.$t('gdd_per_link.redeemlink-error')) + // this.$router.push('/overview') }) }, mutationLink(amount) {