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() {
this.loading = true
this.error = false
this.$apollo
.mutate({
mutation: sendCoins,

View File

@ -1,19 +1,5 @@
<template>
<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-col>
<b-card class="p-0" style="background-color: #ebebeba3 !important">
@ -35,13 +21,27 @@
</b-card>
</b-col>
</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>
</template>
<script>
export default {
name: 'TransactionResult',
props: {
error: { type: Boolean, default: true },
error: { type: Boolean, default: false },
errorResult: { type: String, default: '' },
},
}