diff --git a/lnbits/extensions/satspay/templates/satspay/display.html b/lnbits/extensions/satspay/templates/satspay/display.html index 070ee481..701ee1a1 100644 --- a/lnbits/extensions/satspay/templates/satspay/display.html +++ b/lnbits/extensions/satspay/templates/satspay/display.html @@ -131,6 +131,69 @@ +
+
+
+
+ +
+
+ + +
+
+
+
+ Pay this lightning-network invoice: +
+ + + + + + + +
+
+ Copy invoice +
+
+
+
+
+
+
+
+ + +
+
+ +
+
@@ -154,81 +217,39 @@ >
- Pay this lightning-network invoice: -
+ + + -
- Copy invoice +
+
+ Copy address +
-
-
-
-
- - -
-
- -
-
- - -
-
- Send - - sats to this onchain address - - - - - - -
- Copy address -
-
+
@@ -273,7 +294,7 @@ } ) }, - checkInvoiceBalance: async function () { + checkBalances: async function () { try { const {data} = await LNbits.api.request( 'GET', @@ -291,24 +312,6 @@ LNbits.utils.notifyApiError(error) } }, - checkAddressBalance: async function () { - const { - bitcoin: {addresses: addressesAPI} - } = mempoolJS() - - const fn = async () => - addressesAPI.getAddressTxsUtxo({ - address: this.charge.onchainaddress - }) - - const utxos = await retryWithDelay(fn) - const balance = utxos.reduce((t, u) => t + u.value, 0) - - }, - checkBalances: async function () { - if (this.charge.lnbitswallet) this.checkInvoiceBalance() - if (this.charge.onchainaddress) this.checkAddressBalance() - }, payInvoice: function () { this.lnbtc = true this.onbtc = false