From a5c6d26285cbd27843ca00d60a8d43c0cc6976cc Mon Sep 17 00:00:00 2001 From: Chris Duncan <chris@zoso.dev> Date: Mon, 4 Nov 2024 14:44:29 -0800 Subject: [PATCH] Reset QR code if account creation fails. Start putting licenses into a list. Fix seed export notification. --- nemo-wallet.html | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/nemo-wallet.html b/nemo-wallet.html index aed506d..cb549e9 100644 --- a/nemo-wallet.html +++ b/nemo-wallet.html @@ -497,6 +497,7 @@ await selectAccount() } catch (err) { accountSelect.value = '' + resetQrCode() option?.remove() console.error(err) notify.error(`Error creating account`) @@ -658,7 +659,7 @@ await wallet.unlock(password) const seed = wallet.seed await wallet.lock(password) - return seed + notify.info(seed) } catch (err) { console.error(err) notify.error(`Error exporting seed`) @@ -1112,21 +1113,29 @@ </div> <article> <h2>Licenses</h2> - <cite> - <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/GPL-3.0-or-later.txt;hb=refs/heads/main"> - libnemo GPLv3 License - </a> - </cite> - <cite> - <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/MIT.txt;hb=refs/heads/main"> - libnemo MIT License - </a> - </cite> - <cite> - <a href="https://github.com/twbs/icons/blob/main/LICENSE"> - Bootstrap Icons MIT License - </a> - </cite> + <ul> + <li> + <cite> + <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/GPL-3.0-or-later.txt;hb=refs/heads/main"> + libnemo GPLv3 License + </a> + </cite> + </li> + <li> + <cite> + <a href="https://zoso.dev/?p=libnemo.git;a=blob_plain;f=LICENSES/MIT.txt;hb=refs/heads/main"> + libnemo MIT License + </a> + </cite> + </li> + <li> + <cite> + <a href="https://github.com/twbs/icons/blob/main/LICENSE"> + Bootstrap Icons MIT License + </a> + </cite> + </li> + </ul> </article> </div> </main> -- 2.34.1