mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 08:29:16 +00:00
Add loop status
This commit is contained in:
parent
a3afecd10b
commit
b1ee5084de
|
@ -209,6 +209,7 @@ def page_status():
|
|||
|
||||
# Get Status
|
||||
lnd_status_log = get_journalctl_log("lnd")
|
||||
loopd_status_log = get_journalctl_log("loopd")
|
||||
lndhub_status_log = get_journalctl_log("lndhub")
|
||||
tor_status_log = get_journalctl_log("tor@default")
|
||||
electrs_status_log = get_journalctl_log("electrs")
|
||||
|
@ -259,6 +260,9 @@ def page_status():
|
|||
"lnd_status_log": lnd_status_log,
|
||||
"lnd_status": get_service_status_basic_text("lnd"),
|
||||
"lnd_status_color": get_service_status_color("lnd"),
|
||||
"loopd_status_log": loopd_status_log,
|
||||
"loopd_status": get_service_status_basic_text("loopd"),
|
||||
"loopd_status_color": get_service_status_color("loopd"),
|
||||
"tor_status_log": tor_status_log,
|
||||
"tor_status": get_service_status_basic_text("tor@default"),
|
||||
"tor_status_color": get_service_status_color("tor@default"),
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
$("#lnd_status").show();
|
||||
});
|
||||
|
||||
$("#show_loopd_status").on("click", function() {
|
||||
$("#show_loopd_status").hide(0);
|
||||
$("#loopd_status").show();
|
||||
});
|
||||
|
||||
$("#show_lndhub_status").on("click", function() {
|
||||
$("#show_lndhub_status").hide(0);
|
||||
$("#lndhub_status").show();
|
||||
|
@ -284,6 +289,15 @@
|
|||
<div id="lnd_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{lnd_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Loop Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ loopd_status_color }}"></div>
|
||||
{{ loopd_status }}
|
||||
</div>
|
||||
<button id="show_loopd_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
|
||||
<div id="loopd_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{loopd_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Electrum Server Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ electrs_status_color }}"></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user