Hide status until bitcoin is syced

This commit is contained in:
Taylor Helsper 2020-02-17 22:21:38 -06:00
parent 822487d3db
commit 6edac56634
2 changed files with 14 additions and 9 deletions

View File

@ -1,6 +1,7 @@
from config import *
from flask import Blueprint, render_template, session, abort, Markup, request, redirect, send_from_directory, url_for, flash
from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
from bitcoind import is_bitcoind_synced
from pprint import pprint, pformat
from threading import Timer
from thread_functions import *
@ -151,6 +152,7 @@ def page_settings():
"quicksync_status_log": quicksync_status_log,
"quicksync_status": quicksync_status,
"quicksync_status_color": quicksync_status_color,
"is_bitcoin_synced": is_bitcoind_synced(),
"bitcoin_status_log": bitcoin_status_log,
"bitcoin_status": get_service_status_basic_text("bitcoind"),
"bitcoin_status_color": get_service_status_color("bitcoind"),

View File

@ -552,6 +552,15 @@
<div id="quicksync_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{quicksync_status_log}}</pre></div>
<div class="divider"></div>
<div class="settings_block_subheader">Tor Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ tor_status_color }}"></div>
{{ tor_status }}
</div>
<button id="show_tor_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
<div id="tor_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{tor_status_log}}</pre></div>
<div class="divider"></div>
<div class="settings_block_subheader">Bitcoin Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ bitcoin_status_color }}"></div>
@ -561,6 +570,7 @@
<div id="bitcoin_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{bitcoin_status_log}}</pre></div>
<div class="divider"></div>
{% if is_bitcoin_synced %}
<div class="settings_block_subheader">LND Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ lnd_status_color }}"></div>
@ -570,15 +580,6 @@
<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">Tor Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ tor_status_color }}"></div>
{{ tor_status }}
</div>
<button id="show_tor_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
<div id="tor_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{tor_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>
@ -624,6 +625,8 @@
<div id="mempoolspace_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{mempoolspace_status_log}}</pre></div>
<div class="divider"></div>
{% endif %}
<div class="settings_block_subheader">Firewall Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ firewall_status_color }}"></div>