diff --git a/lnbits/extensions/watchonly/static/js/index.js b/lnbits/extensions/watchonly/static/js/index.js index ec1034dc..424f8604 100644 --- a/lnbits/extensions/watchonly/static/js/index.js +++ b/lnbits/extensions/watchonly/static/js/index.js @@ -49,6 +49,7 @@ new Vue({ authenticated: false, showPasswordDialog: false, showConsole: false, + showSignedPsbt: false, sendingPsbt: false, psbtSent: false }, @@ -781,9 +782,9 @@ new Vue({ }) } }, - hwwToggleAuth: function () { + hwwExecuteDefaultCommand: function () { if (this.hww.authenticated) { - this.hwwLogout() + this.hwwSendPsbt() } else { this.hwwShowPasswordDialog() } diff --git a/lnbits/extensions/watchonly/templates/watchonly/index.html b/lnbits/extensions/watchonly/templates/watchonly/index.html index d81cb2e0..afc56bc8 100644 --- a/lnbits/extensions/watchonly/templates/watchonly/index.html +++ b/lnbits/extensions/watchonly/templates/watchonly/index.html @@ -1129,8 +1129,8 @@ split class="btn-full" color="secondary" - :label="hww.authenticated ? 'Logout' : 'Login'" - @click="hwwToggleAuth()" + :label="hww.authenticated ? 'Sign' : 'Login'" + @click="hwwExecuteDefaultCommand()" > + + Sign + Sign transaction on Hardware + Wallet + @@ -1205,7 +1212,13 @@ v-model="hww.showConsole" > -
+
+ +
- Sign - - -
- -
- Please check transaction data on the Hardware Wallet - display -
-
Confirm
+
+ +
+
+ Check transaction data on the Hardware Wallet + display +