Async update for Bitcoin and Lightning status and colors

This commit is contained in:
Taylor Helsper 2021-06-28 23:05:29 -05:00
parent cae3932dc8
commit 1cb7fd9e71

View File

@ -316,6 +316,16 @@
} }
}); });
// Update Bitcoin and Lightning color + status
$.getJSON("/api/get_service_status?service=bitcoin", function( data ) {
update_status("bitcoin_status", data);
update_status_icon("bitcoin_status_icon", data);
});
$.getJSON("/api/get_service_status?service=lnd", function( data ) {
update_status("lnd_status", data);
update_status_icon("lnd_status_icon", data);
});
// Update app status // Update app status
{% for app in apps %} {% for app in apps %}
{% if app.show_on_homepage %} {% if app.show_on_homepage %}