mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
review fixed
This commit is contained in:
parent
f31ab41354
commit
0aef35c7b2
@ -5,7 +5,7 @@
|
||||
<b-card class="p-0 gradido-custom-background">
|
||||
<div class="p-4">
|
||||
<div class="h3 mb-5">{{ $t('gdd_per_link.created') }}</div>
|
||||
<clipboard-copy :code="linkResult.code" />
|
||||
<clipboard-copy :code="code" />
|
||||
</div>
|
||||
<p class="text-center mt-3">
|
||||
<b-button variant="success" @click="$emit('on-reset')">{{ $t('form.close') }}</b-button>
|
||||
@ -24,12 +24,9 @@ export default {
|
||||
ClipboardCopy,
|
||||
},
|
||||
props: {
|
||||
linkResult: {
|
||||
type: Object,
|
||||
required: false,
|
||||
default() {
|
||||
return {}
|
||||
},
|
||||
code: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@ -19,14 +19,5 @@
|
||||
<script>
|
||||
export default {
|
||||
name: 'TransactionResultSend',
|
||||
props: {
|
||||
linkResult: {
|
||||
type: Object,
|
||||
required: false,
|
||||
default() {
|
||||
return {}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -66,14 +66,6 @@ export const createTransactionLink = gql`
|
||||
mutation($amount: Decimal!, $memo: String!) {
|
||||
createTransactionLink(amount: $amount, memo: $memo) {
|
||||
code
|
||||
id
|
||||
validUntil
|
||||
user {
|
||||
email
|
||||
}
|
||||
memo
|
||||
createdAt
|
||||
validUntil
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
@ -136,9 +136,7 @@ export const queryTransactionLink = gql`
|
||||
createdAt
|
||||
validUntil
|
||||
user {
|
||||
email
|
||||
firstName
|
||||
lastName
|
||||
publisherId
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,10 +30,7 @@
|
||||
></transaction-confirmation-link>
|
||||
</template>
|
||||
<template #transactionResultSendSuccess>
|
||||
<transaction-result-send-success
|
||||
:linkResult="linkResult"
|
||||
@on-reset="onReset"
|
||||
></transaction-result-send-success>
|
||||
<transaction-result-send-success @on-reset="onReset"></transaction-result-send-success>
|
||||
</template>
|
||||
<template #transactionResultSendError>
|
||||
<transaction-result-send-error
|
||||
@ -43,12 +40,7 @@
|
||||
></transaction-result-send-error>
|
||||
</template>
|
||||
<template #transactionResultLink>
|
||||
<transaction-result-link
|
||||
:linkResult="linkResult"
|
||||
:error="error"
|
||||
:errorResult="errorResult"
|
||||
@on-reset="onReset"
|
||||
></transaction-result-link>
|
||||
<transaction-result-link :code="code" @on-reset="onReset"></transaction-result-link>
|
||||
</template>
|
||||
</gdd-send>
|
||||
<hr />
|
||||
@ -94,7 +86,7 @@ export default {
|
||||
errorResult: '',
|
||||
currentTransactionStep: TRANSACTION_STEPS.transactionForm,
|
||||
loading: false,
|
||||
linkResult: {},
|
||||
code: null,
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@ -149,7 +141,7 @@ export default {
|
||||
variables: { amount: this.transactionData.amount, memo: this.transactionData.memo },
|
||||
})
|
||||
.then((result) => {
|
||||
this.linkResult = result.data.createTransactionLink
|
||||
this.code = result.data.createTransactionLink.code
|
||||
this.currentTransactionStep = TRANSACTION_STEPS.transactionResultLink
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@ -28,7 +28,6 @@ export default {
|
||||
displaySetup: {
|
||||
user: {
|
||||
firstName: '',
|
||||
lastName: '',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user