mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-15 21:04:04 +00:00
Use new loading interface for collection indexes
This commit is contained in:
7
frontend/src/components/icon.svelte
vendored
7
frontend/src/components/icon.svelte
vendored
@ -1,5 +1,10 @@
|
||||
<script>
|
||||
export let name = '';
|
||||
export let spin = false;
|
||||
|
||||
if (name === 'loading') {
|
||||
spin = true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@ -35,7 +40,7 @@
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
class:spinning={name === 'loading'}
|
||||
class:spinning={spin}
|
||||
>
|
||||
{#if name === 'radio'}
|
||||
<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>
|
||||
|
Reference in New Issue
Block a user