Fix some "back" or "close" actions

This commit is contained in:
Alexis Sellier
2021-05-27 11:55:10 +02:00
parent e865a2a436
commit 59fc3ba356
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -128,7 +128,7 @@
</button>
<button on:click={() => dispatch('close')} class="text">
Cancel
Back
</button>
{/if}
</span>
+1 -1
View File
@@ -13,7 +13,7 @@
</script>
{#if owner}
<svelte:component this={modal} {owner} {config} on:close={() => navigate('/')} />
<svelte:component this={modal} {owner} {config} on:close={() => window.history.back()} />
{:else}
<Error on:close={() => window.history.back()}>
Not connected.
+1 -1
View File
@@ -24,7 +24,7 @@
let registration: Registration | null = null;
let name: string | null = null;
const back = () => navigate("/orgs");
const back = () => window.history.back();
onMount(async () => {
name = await config.provider.lookupAddress(address);