Fix: switch 'connect additional device' link to use goto (#126)
* Fix: switch 'connect additional device' link to use goto
This commit is contained in:
parent
e7584f167e
commit
1457d6b744
|
|
@ -1,4 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { goto } from '$app/navigation'
|
||||||
|
|
||||||
import { sessionStore } from '../../stores'
|
import { sessionStore } from '../../stores'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -24,8 +26,8 @@
|
||||||
devices as they’d like. For recoverability, we recommend they always
|
devices as they’d like. For recoverability, we recommend they always
|
||||||
connect at least two.
|
connect at least two.
|
||||||
</p>
|
</p>
|
||||||
<a class="btn btn-primary" href="/delegate-account">
|
<button class="btn btn-primary" on:click={() => goto('/delegate-account')}>
|
||||||
Connect an additional device
|
Connect an additional device
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { goto } from '$app/navigation'
|
||||||
|
|
||||||
import { sessionStore } from '$src/stores'
|
import { sessionStore } from '$src/stores'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -9,7 +11,7 @@
|
||||||
{:else}
|
{:else}
|
||||||
<p>You have no other connected devices.</p>
|
<p>You have no other connected devices.</p>
|
||||||
{/if}
|
{/if}
|
||||||
<a class="btn btn-outline" href="/delegate-account">
|
<button class="btn btn-outline" on:click={() => goto('/delegate-account')}>
|
||||||
Connect an additional device
|
Connect an additional device
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue