add extra disabled variable for send emit, disabled send by emit

This commit is contained in:
ogerly 2022-03-31 14:47:48 +02:00
parent 902d45e8d2
commit 69b1cf7a06

View File

@ -58,7 +58,11 @@
<b-button @click="$emit('on-reset')">{{ $t('form.cancel') }}</b-button> <b-button @click="$emit('on-reset')">{{ $t('form.cancel') }}</b-button>
</b-col> </b-col>
<b-col class="text-right"> <b-col class="text-right">
<b-button variant="success" :disabled="loading" @click="$emit('send-transaction')"> <b-button
variant="success"
:disabled="disabled"
@click="$emit('send-transaction'), (disabled = 'disabled')"
>
{{ $t('form.send_now') }} {{ $t('form.send_now') }}
</b-button> </b-button>
</b-col> </b-col>
@ -76,6 +80,11 @@ export default {
loading: { type: Boolean, required: true }, loading: { type: Boolean, required: true },
selected: { type: String, required: true }, selected: { type: String, required: true },
}, },
data() {
return {
disabled: this.loading,
}
},
} }
</script> </script>
<style> <style>