diff --git a/rootfs/standard/var/www/mynode/api.py b/rootfs/standard/var/www/mynode/api.py
index 9bf69024..9d3dcbb9 100644
--- a/rootfs/standard/var/www/mynode/api.py
+++ b/rootfs/standard/var/www/mynode/api.py
@@ -146,4 +146,24 @@ def api_get_message():
data = {}
data["message"] = get_message(funny)
+ return jsonify(data)
+
+@mynode_api.route("/api/toggle_setting")
+def api_toggle_setting():
+ check_logged_in()
+
+ data = {}
+ data["status"] = "unknown"
+
+ if not request.args.get("setting"):
+ data["status"] = "no_setting_specified"
+ return jsonify(data)
+
+ setting = request.args.get("setting")
+ if setting == "pinned_lightning_details":
+ toggle_pinned_lightning_details()
+ data["status"] = "success"
+ else:
+ data["status"] = "unknown_setting"
+
return jsonify(data)
\ No newline at end of file
diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py
index 8b6bd7bd..415e5c44 100644
--- a/rootfs/standard/var/www/mynode/device_info.py
+++ b/rootfs/standard/var/www/mynode/device_info.py
@@ -471,6 +471,14 @@ def toggle_darkmode():
else:
enable_darkmode()
+def toggle_pinned_lightning_details():
+ ui_settings = read_ui_settings()
+ if "pinned_lightning_details" not in ui_settings or ui_settings["pinned_lightning_details"] == False:
+ ui_settings["pinned_lightning_details"] = True
+ else:
+ ui_settings["pinned_lightning_details"] = False
+ write_ui_settings(ui_settings)
+
def set_background(background):
ui_settings = read_ui_settings()
ui_settings['background'] = background
diff --git a/rootfs/standard/var/www/mynode/static/css/mynode.css b/rootfs/standard/var/www/mynode/static/css/mynode.css
index 92f456ad..90a245eb 100644
--- a/rootfs/standard/var/www/mynode/static/css/mynode.css
+++ b/rootfs/standard/var/www/mynode/static/css/mynode.css
@@ -310,6 +310,13 @@ td, th {
.lightning_channel_container {
width: 1000px;
}
+.lightning_pin_details_icon {
+ width: 26px;
+ position: absolute;
+ top: 5px;
+ right: 5px;
+ cursor: pointer;
+}
.lightning_channel_top_row {
margin-bottom: 3px;
height: 25px;
diff --git a/rootfs/standard/var/www/mynode/static/images/pin.png b/rootfs/standard/var/www/mynode/static/images/pin.png
new file mode 100644
index 00000000..115a0e29
Binary files /dev/null and b/rootfs/standard/var/www/mynode/static/images/pin.png differ
diff --git a/rootfs/standard/var/www/mynode/static/images/unpin.png b/rootfs/standard/var/www/mynode/static/images/unpin.png
new file mode 100644
index 00000000..24a61f9e
Binary files /dev/null and b/rootfs/standard/var/www/mynode/static/images/unpin.png differ
diff --git a/rootfs/standard/var/www/mynode/templates/includes/services.html b/rootfs/standard/var/www/mynode/templates/includes/services.html
index 41a6044d..3ac6f16d 100644
--- a/rootfs/standard/var/www/mynode/templates/includes/services.html
+++ b/rootfs/standard/var/www/mynode/templates/includes/services.html
@@ -93,7 +93,7 @@
{% if lnd_wallet_exists and lnd_ready %}
-
+
{% endif %}
@@ -166,24 +166,16 @@