tornado-initiation-ui/components/Loading.vue

29 lines
687 B
Vue
Raw Normal View History

2020-10-30 09:01:41 +01:00
<template>
<b-loading :active.sync="enabled">
<div class="loading-container">
<div class="loading-tornado"></div>
<div class="loading-message">{{ message }}...</div>
2020-11-03 08:35:46 +01:00
<!-- <b-button
v-if="txHash"
tag="a"
type="is-primary"
:href="txExplorerUrl(txHash)"
target="_blank"
>
2020-10-30 09:01:41 +01:00
{{ $t('viewInExplorer') }}
2020-11-03 08:35:46 +01:00
</b-button> -->
2020-10-30 09:01:41 +01:00
</div>
</b-loading>
</template>
<script>
2020-11-03 08:35:46 +01:00
import { mapState } from 'vuex'
2020-10-30 09:01:41 +01:00
export default {
computed: {
2020-11-03 08:35:46 +01:00
// ...mapGetters('txStorage', ['txExplorerUrl']),
2020-10-30 09:01:41 +01:00
...mapState('loading', ['enabled', 'message', 'txHash']),
2020-11-03 08:35:46 +01:00
...mapState('metamask', ['providerName']),
},
2020-10-30 09:01:41 +01:00
}
</script>