commit 7ff1def255df4d2edbed3bf51051ac4123b2caac
parent 11579154ecc1a7004dfb521321454bcc868d305d
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Fri, 5 Feb 2021 00:05:14 +1100
fix wrong button bug
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/lightning.md b/docs/lightning.md
@@ -5,6 +5,7 @@ You will need to install the additional dependency lndgrpc:
```
pip3 install lndgrpc==0.2.0
```
+If it fails to build or is taking a while, see this [solution](https://stackoverflow.com/questions/56357794/unable-to-install-grpcio-using-pip-install-grpcio#comment113013007_62500932).
To use lightning, you need to change your `pay_method` in `config.py`, and set your lightning directory on your node.
```python
diff --git a/templates/index.html b/templates/index.html
@@ -114,10 +114,10 @@
<div id="left" style="text-align: left; padding: 0;">
<!-- Alternate between offering lightning or on chain payment switch -->
{% if params.lnd_enabled %}
- {% if params.method != "lnd"%}
- <button onclick="replaceUrlParam(window.location, 'method', 'lnd');">Lightning Payment</button>
- {% else %}
+ {% if params.method == "lnd"%}
<button onclick="replaceUrlParam(window.location, 'method', 'btcd');">On-chain Payment</button>
+ {% else %}
+ <button onclick="replaceUrlParam(window.location, 'method', 'lnd');">Lightning Payment</button>
{% endif %}
{% endif %}
</div>