diff --git a/package-lock.json b/package-lock.json index 717bc25..736d557 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "clipboard-copy": "^4.0.1", "qrcode-svg": "^1.1.0", - "webnative": "0.34.0" + "webnative": "0.34.1" }, "devDependencies": { "@sveltejs/adapter-static": "1.0.0-next.36", @@ -5501,9 +5501,9 @@ } }, "node_modules/webnative": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/webnative/-/webnative-0.34.0.tgz", - "integrity": "sha512-BS5pgHx9+sIzZ3NYA9Q76QQOctHFuyZ9p/LC4U4+gWTjycj0efWl0Z2jlsaUyGfqBkFLReyDeTb3ldHkD2PgbA==", + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/webnative/-/webnative-0.34.1.tgz", + "integrity": "sha512-FCY00dBUUHWEdabkLV3INTxnkNVlRQfmiNfe4M+Pg85rppLTHP0WU/MAbPHan5NMdH2j09KPeFmxLD2qbqszHQ==", "dependencies": { "@ipld/dag-cbor": "^7.0.2", "@ipld/dag-pb": "^2.1.17", @@ -9506,9 +9506,9 @@ "peer": true }, "webnative": { - "version": "0.34.0", - "resolved": "https://registry.npmjs.org/webnative/-/webnative-0.34.0.tgz", - "integrity": "sha512-BS5pgHx9+sIzZ3NYA9Q76QQOctHFuyZ9p/LC4U4+gWTjycj0efWl0Z2jlsaUyGfqBkFLReyDeTb3ldHkD2PgbA==", + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/webnative/-/webnative-0.34.1.tgz", + "integrity": "sha512-FCY00dBUUHWEdabkLV3INTxnkNVlRQfmiNfe4M+Pg85rppLTHP0WU/MAbPHan5NMdH2j09KPeFmxLD2qbqszHQ==", "requires": { "@ipld/dag-cbor": "^7.0.2", "@ipld/dag-pb": "^2.1.17", diff --git a/package.json b/package.json index f5f81a3..1294345 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,6 @@ "dependencies": { "clipboard-copy": "^4.0.1", "qrcode-svg": "^1.1.0", - "webnative": "0.34.0" + "webnative": "0.34.1" } } diff --git a/src/components/auth/link/LinkDevice.svelte b/src/components/auth/link/LinkDevice.svelte index 02c0b78..fab91da 100644 --- a/src/components/auth/link/LinkDevice.svelte +++ b/src/components/auth/link/LinkDevice.svelte @@ -2,10 +2,11 @@ import { goto } from '$app/navigation' import { page } from '$app/stores' - import { appName } from '$lib/app-name' import { createAccountLinkingConsumer } from '$lib/auth/linking' import { loadAccount } from '$lib/common/webnative' + let loadingFilesystem = false + let displayPin: string = '' let url = $page.url const username = url.searchParams.get('username') @@ -23,6 +24,8 @@ accountLinkingConsumer.on('link', async ({ approved, username }) => { if (approved) { + loadingFilesystem = true + await loadAccount(username) goto('/') // Send up a toast on '/' @@ -34,35 +37,54 @@ -
+ + Loading file system... +
+