From 69501e700cbf0aa25920fa9a8df63a4fbc5efc4c Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Wed, 19 May 2021 16:35:48 +0200 Subject: [PATCH] Improve registration edit flow --- src/base/registrations/View.svelte | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/base/registrations/View.svelte b/src/base/registrations/View.svelte index 9cff7ab3b..3c6278a1b 100644 --- a/src/base/registrations/View.svelte +++ b/src/base/registrations/View.svelte @@ -74,6 +74,11 @@ } }; + const done = () => { + // Reload page to load updates to the registration. + location.reload(); + }; + $: isOwner = (registration: Registration): boolean => { return registration.owner === ($session && $session.address); }; @@ -113,20 +118,25 @@ {:else} - Transaction +
🧾
+
Update registration
- + {#if state === State.Signing} -

Please confirm the transaction in your wallet...

+

Please confirm the transaction in your wallet

{:else if state === State.Pending} -

Transaction submitted. Waiting for inclusion...

+

Transaction is being processed by the network...

{:else if state === State.Success} - Success! +

Your registration was successfully updated.

{/if}
{#if [State.Signing, State.Pending].includes(state)} + {:else if state === State.Success} + {/if}