mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-22 01:46:52 +01:00
a979220830
-disable fields if successful on the authorize page
28 lines
556 B
Vue
28 lines
556 B
Vue
<template>
|
|
<b-loading :active.sync="loading">
|
|
<div class="loading-container">
|
|
<div class="loading-tornado"></div>
|
|
<div class="loading-message">{{ message }}...</div>
|
|
</div>
|
|
</b-loading>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
loading: false,
|
|
message: 'Loading'
|
|
}
|
|
},
|
|
created() {
|
|
this.$root.$on('enableLoading', (msg = 'Loading') => {
|
|
this.loading = true
|
|
this.message = msg
|
|
})
|
|
this.$root.$on('disableLoading', () => {
|
|
this.loading = false
|
|
})
|
|
}
|
|
}
|
|
</script>
|