Hide Netdata info until it's ready

This commit is contained in:
Taylor Helsper 2020-04-14 21:32:27 -05:00
parent 74935e46ec
commit a23bfd558c
2 changed files with 14 additions and 12 deletions

View File

@ -8,6 +8,7 @@ After=mynode.service docker_images.service
[Service]
WorkingDirectory=/opt/mynode/netdata
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStart=/usr/local/bin/docker-compose -f netdata-compose.yml up
ExecStop=/usr/local/bin/docker-compose -f netdata-compose.yml down

View File

@ -514,7 +514,7 @@
<tr>
<td>Details</td>
<td style="padding-left: 20px;">
{% if is_netdata_enabled %}
{% if is_netdata_enabled and is_bitcoin_synced %}
<a id="netdata" class="ui-button ui-widget ui-corner-all settings_button_small" href="#">Open Netdata</a>
{% endif %}
<a id="glances" class="ui-button ui-widget ui-corner-all settings_button_small" href="#">Open Glances</a>
@ -621,18 +621,8 @@
<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_netdata_enabled %}
<div class="settings_block_subheader">Netdata Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ netdata_status_color }}"></div>
{{ netdata_status }}
</div>
<button id="show_netdata_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
<div id="netdata_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{netdata_status_log}}</pre></div>
<div class="divider"></div>
{% endif %}
{% 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>
@ -714,6 +704,17 @@
<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>
{% if is_netdata_enabled %}
<div class="settings_block_subheader">Netdata Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ netdata_status_color }}"></div>
{{ netdata_status }}
</div>
<button id="show_netdata_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show</button>
<div id="netdata_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{netdata_status_log}}</pre></div>
<div class="divider"></div>
{% endif %}
{% endif %}
<div class="settings_block_subheader">Firewall Status</div>