From b6d9942b113e51298ba9e4405997c3dc52bec908 Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 5 Oct 2022 11:45:43 +1100 Subject: [PATCH] feat: show WASM download indicator --- rln-js/index.html | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/rln-js/index.html b/rln-js/index.html index 9e13316..f7be4a8 100644 --- a/rln-js/index.html +++ b/rln-js/index.html @@ -10,10 +10,11 @@

Waku RLN

+

Blockchain

Wallet

Address:

- +

Contract Data

Latest membership id on contract:

@@ -42,7 +43,7 @@

Waku

-
+
{ rlnInstance = _rlnInstance - generateCredsButton.disabled = false; - connectWalletButton.disabled = false; + statusSpan.innerText = 'WASM Blob download in progress... done!' + updateFields() + setTimeout(() => { + statusSpan.innerText = '' + }, 5000) }) const ContentTopic = "/toy-chat/2/luzhou/proto"; @@ -156,6 +164,8 @@ } } + generateCredsButton.disabled = !rlnInstance + registerButton.disabled = !(membershipKey && retrievedRLNEvents && !membershipId) importButton.disabled = !(membershipIdInput.value @@ -170,7 +180,7 @@ dialButton.disabled = !(node && node.isStarted() && retrievedRLNEvents) - retrieveRLNDetailsButton.disabled = !retrievedRLNEvents; + retrieveRLNDetailsButton.disabled = !rlnInstance && !retrievedRLNEvents; } // Blockchain @@ -394,7 +404,7 @@ textInput.value = null; setTimeout(() => { sendingStatusSpan.innerText = '' - }, 1000) + }, 5000) };