send commit for send per link

This commit is contained in:
ogerly 2022-03-11 15:54:08 +01:00
parent 24dfa3a0e7
commit 35b9627300
2 changed files with 30 additions and 2 deletions

View File

@ -27,7 +27,25 @@
</b-card>
</b-col>
</b-row>
<b-row v-if="!error">
<b-row v-if="linkResult.code">
<b-col>
<b-card class="p-0 gradido-custom-background">
<div class="p-4">
{{ $t('form.thx') }}
<hr />
Der Link wurde erstellt!
<br />
linkResult: {{ linkResult }}
<br />
<h2>http://localhost/redeem/{{ linkResult.code }}</h2>
</div>
<p class="text-center mt-3">
<b-button variant="success" @click="$emit('on-reset')">{{ $t('form.close') }}</b-button>
</p>
</b-card>
</b-col>
</b-row>
<b-row v-if="!error && !linkResult.code">
<b-col>
<b-card class="p-0 gradido-custom-background">
<div class="p-4">
@ -47,6 +65,13 @@
export default {
name: 'TransactionResult',
props: {
linkResult: {
type: Object,
required: false,
default() {
return {}
},
},
error: { type: Boolean, default: false },
errorResult: { type: String, default: '' },
},

View File

@ -19,6 +19,7 @@
</template>
<template #transaction-result>
<transaction-result
:linkResult="linkResult"
:error="error"
:errorResult="errorResult"
@on-reset="onReset"
@ -57,6 +58,7 @@ export default {
errorResult: '',
currentTransactionStep: 0,
loading: false,
linkResult: {},
}
},
props: {
@ -102,7 +104,8 @@ export default {
variables: { amount: this.transactionData.amount, memo: this.transactionData.memo },
})
.then((result) => {
alert(result)
console.log(result.data.createTransactionLink)
this.linkResult = result.data.createTransactionLink
})
.catch((error) => {
this.toastError(error)