Use centralized loading indicator
This commit is contained in:
22
svelte/src/util/LoadingIndicator.svelte
Normal file
22
svelte/src/util/LoadingIndicator.svelte
Normal file
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import Spinner from "./Spinner.svelte";
|
||||
|
||||
export let loading = false
|
||||
</script>
|
||||
|
||||
{#if loading}
|
||||
<div class="container">
|
||||
<Spinner/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
height: 120px;
|
||||
width: 120px;
|
||||
z-index: 1000;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user