add no redeem - You can't redeem your own link!

This commit is contained in:
ogerly 2022-03-18 09:05:01 +01:00
parent ddc036dd34
commit 6be14e83b7
4 changed files with 17 additions and 7 deletions

View File

@ -140,7 +140,7 @@ export const queryTransactionLink = gql`
user {
firstName
publisherId
id
email
}
}
}

View File

@ -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",

View File

@ -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",

View File

@ -2,7 +2,10 @@
<div class="show-transaction-link-informations">
<div class="text-center"><b-img :src="img" fluid alt="logo"></b-img></div>
<b-container class="pt-5">
displaySetup : {{displaySetup}}
<!-- store: {{ $store.state }}
<hr />
displaySetup : {{ displaySetup }}
-->
<div>
<b-jumbotron bg-variant="info" text-variant="dark" border-variant="dark">
<h1>
@ -16,11 +19,10 @@
<div v-if="$store.state.token">
<b-jumbotron>
<div class="mb-3 text-center">
<b-button variant="primary" to="/register" size="lg">
{{ $t('gdd_per_link.redeem') }}
</b-button>
<b-button :disabled="disabled" variant="primary" @click="redeemLink" size="lg">
{{ $t('gdd_per_link.redeem') }}
</b-button>
<div v-if="disabled" class="mt-3"><small>{{ $t('gdd_per_link.no-redeem') }}</small></div>
</div>
</b-jumbotron>
</div>
@ -101,6 +103,12 @@ export default {
})
},
},
computed: {
disabled() {
return this.displaySetup.user.email === this.$store.state.email ? true : false
},
},
created() {
this.setTransactionLinkInformation()
console.log(this)