mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
send commit for send per link
This commit is contained in:
parent
24dfa3a0e7
commit
35b9627300
@ -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: '' },
|
||||
},
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user