diff options
| author | Fuwn <[email protected]> | 2024-01-25 04:32:19 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-25 04:32:19 -0800 |
| commit | 9445d317ac3adc2cebd44c97540092c40260a9ad (patch) | |
| tree | fcd55c54ac7f1e6dbc100e22f719493a5b82b920 /src/lib/List/ListTitle.svelte | |
| parent | feat(locale): localise profile page (diff) | |
| download | due.moe-9445d317ac3adc2cebd44c97540092c40260a9ad.tar.xz due.moe-9445d317ac3adc2cebd44c97540092c40260a9ad.zip | |
feat: hide loading progress
Diffstat (limited to 'src/lib/List/ListTitle.svelte')
| -rw-r--r-- | src/lib/List/ListTitle.svelte | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte index 72684b92..b5c79bc8 100644 --- a/src/lib/List/ListTitle.svelte +++ b/src/lib/List/ListTitle.svelte @@ -3,6 +3,7 @@ export let count = -1337; export let anime = false; export let custom = ''; + export let progress: undefined | number = undefined; </script> <summary> @@ -11,4 +12,7 @@ : count}] <small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small> <slot /> + {#if progress !== undefined} + {progress.toFixed(0)}% + {/if} </summary> |