From 6be14e83b737c2a69487fbb2e299b20c4303ba54 Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 18 Mar 2022 09:05:01 +0100 Subject: [PATCH] add no redeem - You can't redeem your own link! --- frontend/src/graphql/queries.js | 2 +- frontend/src/locales/de.json | 1 + frontend/src/locales/en.json | 1 + .../pages/ShowTransactionLinkInformations.vue | 20 +++++++++++++------ 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index 503489e86..a6005d5c8 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -140,7 +140,7 @@ export const queryTransactionLink = gql` user { firstName publisherId - id + email } } } diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 9313f3f30..d3bf16157 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -108,6 +108,7 @@ "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.", "redeem":"Einlösen", "redeem-text":"Willst du den Betrag jetzt einlösen?", + "no-redeem":"Du kannst deinen eigenen Link nicht einlösen!", "no-account":"Du hast noch kein Gradido Konto", "to-register":"Registriere ein neues Konto", "has-account":"Du hast einen Gradido Konto", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 1280f61a5..844d9a5f2 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -108,6 +108,7 @@ "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.", "redeem": "Redeem", "redeem-text":"Do you want to redeem the amount now?", + "no-redeem":"You can't redeem your own link!", "no-account": "You don't have a Gradido account yet", "to-register": "Register a new account", "has-account": "You have a Gradido account", diff --git a/frontend/src/pages/ShowTransactionLinkInformations.vue b/frontend/src/pages/ShowTransactionLinkInformations.vue index c70ac6f3a..67db48ab3 100644 --- a/frontend/src/pages/ShowTransactionLinkInformations.vue +++ b/frontend/src/pages/ShowTransactionLinkInformations.vue @@ -2,7 +2,10 @@