From 2ae4df70ea4b3d592661a21b790a8a53e1c8740d Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 2 Aug 2022 17:02:42 +0300 Subject: [PATCH] feat: add password confirmation for `Wipe` and `Restore` --- .../static/components/payment/payment.js | 4 +-- .../serial-signer/serial-signer.html | 35 ++++++++++++++++--- .../components/serial-signer/serial-signer.js | 2 ++ 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/lnbits/extensions/watchonly/static/components/payment/payment.js b/lnbits/extensions/watchonly/static/components/payment/payment.js index e5892b30..a765b10d 100644 --- a/lnbits/extensions/watchonly/static/components/payment/payment.js +++ b/lnbits/extensions/watchonly/static/components/payment/payment.js @@ -286,8 +286,8 @@ async function payment(path) { timeout: 10000 }) - // await this.scanAddressWithAmount() - // todo: event + // todo: event rescan with amount + // todo: display tx id } catch (error) { this.sentTxId = null this.$q.notify({ diff --git a/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.html b/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.html index 8f1a2264..7ae2bb8e 100644 --- a/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.html +++ b/lnbits/extensions/watchonly/static/components/serial-signer/serial-signer.html @@ -268,6 +268,14 @@ type="password" label="Password" > + + This action cannot be reversed! @@ -276,7 +284,7 @@ Wipe @@ -356,7 +364,7 @@ :type="hww.showMnemonic ? 'text' : 'password'" filled dense - hint="Word List" + label="Word List" >