send variable error by send to set in false, remove string 'recipiant not known' to 'recipiant not known'

This commit is contained in:
ogerly 2022-02-11 12:09:45 +01:00
parent c12a1c469d
commit 7c7339e85b
2 changed files with 16 additions and 15 deletions

View File

@ -78,6 +78,7 @@ export default {
}, },
async sendTransaction() { async sendTransaction() {
this.loading = true this.loading = true
this.error = false
this.$apollo this.$apollo
.mutate({ .mutate({
mutation: sendCoins, mutation: sendCoins,

View File

@ -1,19 +1,5 @@
<template> <template>
<b-container> <b-container>
<b-row v-if="!error">
<b-col>
<b-card class="p-0" style="background-color: #ebebeba3 !important">
<div class="p-4">
{{ $t('form.thx') }}
<hr />
{{ $t('form.send_transaction_success') }}
</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"> <b-row v-if="error">
<b-col> <b-col>
<b-card class="p-0" style="background-color: #ebebeba3 !important"> <b-card class="p-0" style="background-color: #ebebeba3 !important">
@ -35,13 +21,27 @@
</b-card> </b-card>
</b-col> </b-col>
</b-row> </b-row>
<b-row v-if="!error">
<b-col>
<b-card class="p-0" style="background-color: #ebebeba3 !important">
<div class="p-4">
{{ $t('form.thx') }}
<hr />
{{ $t('form.send_transaction_success') }}
</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-container> </b-container>
</template> </template>
<script> <script>
export default { export default {
name: 'TransactionResult', name: 'TransactionResult',
props: { props: {
error: { type: Boolean, default: true }, error: { type: Boolean, default: false },
errorResult: { type: String, default: '' }, errorResult: { type: String, default: '' },
}, },
} }