-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2adc828
commit d133215
Showing
5 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
web-wallet/src/routes/(welcome)/setup/restore/NetworkSyncProgress.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<script> | ||
import IconHeadingCard from "$lib/containers/Cards/IconHeadingCard.svelte"; | ||
import { ProgressBar } from "$lib/dusk/components"; | ||
import { logout } from "$lib/navigation"; | ||
import { walletStore } from "$lib/stores"; | ||
import { mdiCubeOutline } from "@mdi/js"; | ||
import { onDestroy } from "svelte"; | ||
$: ({ sync } = $walletStore); | ||
/** @type {boolean} */ | ||
export let isValid = false; | ||
$: isValid = !sync.inProgress; | ||
onDestroy(() => { | ||
logout(false); | ||
}); | ||
</script> | ||
|
||
<IconHeadingCard iconPath={mdiCubeOutline} heading="Please wait..."> | ||
{#if sync.inProgress} | ||
{#if !sync.current || !sync.latest} | ||
<span>Syncing</span> | ||
{:else} | ||
<span> | ||
Syncing: <b | ||
>{sync.current.toLocaleString()}/{sync.latest.toLocaleString()}</b | ||
> | ||
</span> | ||
<ProgressBar | ||
className="footer__sync-status-progress-bar" | ||
currentPercentage={(sync.current / sync.latest) * 100} | ||
/> | ||
{/if} | ||
{:else} | ||
<span>Sync completed!</span> | ||
{/if} | ||
</IconHeadingCard> |
2 changes: 1 addition & 1 deletion
2
...welcome)/setup/restore/NetworkSync.svelte → .../setup/restore/NetworkSyncSettings.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters