2018-05-02 00:05:36 +00:00
|
|
|
<div class="loading-mask-container {shown ? 'loading-mask-container-shown' : ''}">
|
|
|
|
{#if shown}
|
2018-02-15 02:37:19 +00:00
|
|
|
<div class="loading-mask">
|
|
|
|
<LoadingSpinner maskStyle="true"/>
|
|
|
|
</div>
|
2018-05-02 00:05:36 +00:00
|
|
|
{/if}
|
2018-01-14 19:22:57 +00:00
|
|
|
</div>
|
|
|
|
<style>
|
2018-02-15 02:37:19 +00:00
|
|
|
.loading-mask-container {
|
2018-01-14 19:22:57 +00:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 100;
|
2018-02-15 02:23:11 +00:00
|
|
|
pointer-events: none;
|
2018-02-15 02:37:19 +00:00
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 333ms linear;
|
2018-02-15 02:23:11 +00:00
|
|
|
}
|
2018-02-15 02:37:19 +00:00
|
|
|
.loading-mask-container.loading-mask-container-shown {
|
2018-02-15 02:23:11 +00:00
|
|
|
pointer-events: auto;
|
2018-02-15 02:37:19 +00:00
|
|
|
opacity: 0.6;
|
2018-01-14 19:22:57 +00:00
|
|
|
}
|
|
|
|
.loading-mask {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background: var(--mask-bg);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2018-01-15 07:24:27 +00:00
|
|
|
import LoadingSpinner from './LoadingSpinner.html'
|
2018-02-15 02:37:19 +00:00
|
|
|
import { store } from '../_store/store'
|
2018-01-14 19:22:57 +00:00
|
|
|
|
|
|
|
export default {
|
2018-02-15 02:37:19 +00:00
|
|
|
store: () => store,
|
|
|
|
computed: {
|
2018-05-02 00:05:36 +00:00
|
|
|
shown: ({ $logInToInstanceLoading }) => $logInToInstanceLoading
|
2018-02-15 02:37:19 +00:00
|
|
|
},
|
2018-01-15 07:24:27 +00:00
|
|
|
components: {
|
|
|
|
LoadingSpinner
|
|
|
|
}
|
2018-01-14 19:22:57 +00:00
|
|
|
}
|
|
|
|
</script>
|