mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 14:08:07 +00:00
Make reinstall a list
This commit is contained in:
parent
9716b24c56
commit
9b008d35b2
|
@ -108,6 +108,9 @@ def page_settings():
|
|||
# Get Electrs Status
|
||||
electrs_status_log = get_journalctl_log("electrs")
|
||||
|
||||
# Get RTL Status
|
||||
rtl_status_log = get_journalctl_log("rtl")
|
||||
|
||||
# Get Docker Image Build Status
|
||||
docker_image_build_status_log = get_journalctl_log("docker_images")
|
||||
|
||||
|
@ -150,6 +153,9 @@ def page_settings():
|
|||
"electrs_status_log": electrs_status_log,
|
||||
"electrs_status": get_service_status_basic_text("electrs"),
|
||||
"electrs_status_color": get_service_status_color("electrs"),
|
||||
"rtl_status_log": rtl_status_log,
|
||||
"rtl_status": get_service_status_basic_text("rtl"),
|
||||
"rtl_status_color": get_service_status_color("rtl"),
|
||||
"docker_image_build_status_log": docker_image_build_status_log,
|
||||
"docker_image_build_status": get_docker_image_build_status(),
|
||||
"docker_image_build_status_color": get_docker_image_build_status_color(),
|
||||
|
|
|
@ -199,6 +199,11 @@
|
|||
$("#electrs_status").show();
|
||||
});
|
||||
|
||||
$("#show_rtl_status").on("click", function() {
|
||||
$("#show_rtl_status").hide(0);
|
||||
$("#rtl_status").show();
|
||||
});
|
||||
|
||||
$("#show_docker_image_build_status").on("click", function() {
|
||||
$("#show_docker_image_build_status").hide(0);
|
||||
$("#docker_image_build_status").show();
|
||||
|
@ -313,6 +318,28 @@
|
|||
disabled: true
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
var reinstall_app_choice="";
|
||||
$("#reinstall_app").selectmenu( {
|
||||
change: function( event, data ) {
|
||||
reinstall_app_choice = data.item.value;
|
||||
if (data.item.value == "none")
|
||||
{
|
||||
$("#reinstall_button").button("disable");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#reinstall_button").button("enable");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$("#reinstall_button").button({
|
||||
disabled: true
|
||||
});
|
||||
$("#reinstall_button").on("click", function() {
|
||||
window.location.href='/settings/reinstall-app?app='+reinstall_app_choice
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
@ -516,6 +543,15 @@
|
|||
<div id="electrs_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{electrs_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">RTL Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ rtl_status_color }}"></div>
|
||||
{{ rtl_status }}
|
||||
</div>
|
||||
<button id="show_rtl_status" class="ui-button ui-widget ui-corner-all settings_button">Show</button>
|
||||
<div id="rtl_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{rtl_status_log}}</pre></div>
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Docker Image Build Status</div>
|
||||
<div class="settings_block_subheader_status">
|
||||
<div class="settings_block_subheader_status_icon {{ docker_image_build_status_color }}"></div>
|
||||
|
@ -703,28 +739,24 @@
|
|||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Reinstall Applications</div>
|
||||
If you are having issues with a specific application, you can try to reinstall them via the buttons below. Reinstalling
|
||||
If you are having issues with a specific application, you can try to reinstall them via the list below. Reinstalling
|
||||
an app will trigger a reboot of your device.
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=bitcoin" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">Bitcoin</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=lnd" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">LND</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=lndhub" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">LndHub</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=rtl" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">RTL</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=mempoolspace" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">Mempool.Space</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=joinmarket" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">JoinMarket</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=whirlpool" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">Whirlpool</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=btcrpcexplorer" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">BTC RPC Explorer</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=lndconnect" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">LNDConnect</a>
|
||||
<br/>
|
||||
<a href="/settings/reinstall-app?app=webssh2" style="width: 200px;" class="ui-button ui-widget ui-corner-all settings_button">WebSSH2</a>
|
||||
<br/><br/>
|
||||
|
||||
<select name="reinstall_app" id="reinstall_app">
|
||||
<option value="none" selected="selected">Choose...</option>
|
||||
<option value="bitcoin">Bitcoin</option>
|
||||
<option value="lnd">LND</option>
|
||||
<option value="lndhub">LndHub</option>
|
||||
<option value="rtl">RTL</option>
|
||||
<option value="mempoolspace">Mempool Space</option>
|
||||
<option value="joinmarket">JoinMarket</option>
|
||||
<option value="whirlpool">Whirlpool</option>
|
||||
<option value="btcrpcexplorer">BTC RPC Explorer</option>
|
||||
<option value="lndconnect">LNDConnect</option>
|
||||
<option value="webssh2">WebSSH2</option>
|
||||
</select>
|
||||
<button id="reinstall_button">Reinstall</button>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user