2022-04-21 23:05:56 -04:00
|
|
|
<template>
|
|
|
|
<b-loading v-model="enabled">
|
|
|
|
<div class="loading-container">
|
2022-05-16 08:08:17 -04:00
|
|
|
<div class="loading-tornado" data-test="tornado_loader"></div>
|
2022-04-21 23:05:56 -04:00
|
|
|
<div class="loading-message">{{ message }}...</div>
|
2022-10-13 10:33:49 -04:00
|
|
|
<div v-if="progress >= 0" class="loading-message">{{ progress }}%</div>
|
2022-04-21 23:05:56 -04:00
|
|
|
<approve-loader v-if="isApprove" />
|
|
|
|
</div>
|
|
|
|
</b-loading>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { mapState, mapGetters } from 'vuex'
|
|
|
|
import ApproveLoader from './ApproveLoader'
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
ApproveLoader
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapGetters('metamask', ['isWalletConnect']),
|
|
|
|
...mapState('metamask', ['providerName']),
|
2022-10-13 10:33:49 -04:00
|
|
|
...mapState('loading', ['enabled', 'message', 'progress', 'type']),
|
2022-04-21 23:05:56 -04:00
|
|
|
isApprove() {
|
|
|
|
return this.type === 'approve'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-28 03:51:47 -04:00
|
|
|
</script>
|