Hide sphinx on testnet
This commit is contained in:
parent
402ad89ce5
commit
f09a8f126c
|
@ -544,6 +544,8 @@ def get_ckbunker_status_and_color():
|
|||
def get_sphinxrelay_status_and_color():
|
||||
color = "gray"
|
||||
status = "Chat"
|
||||
if is_testnet_enabled():
|
||||
return "Requires Mainnet", "gray"
|
||||
if is_lnd_ready():
|
||||
if is_sphinxrelay_enabled():
|
||||
status_code = get_service_status_code("sphinxrelay")
|
||||
|
|
|
@ -241,11 +241,13 @@
|
|||
{% if product_key_skipped %}
|
||||
Premium Feature
|
||||
{% else %}
|
||||
{% if sphinxrelay_enabled %}
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="/sphinxrelay">Info</a>
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="#" id="toggle-sphinxrelay">Disable</a>
|
||||
{% else %}
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="#" id="toggle-sphinxrelay">Enable</a>
|
||||
{% if lnd_ready and not is_testnet_enabled %}
|
||||
{% if sphinxrelay_enabled %}
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="/sphinxrelay">Info</a>
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="#" id="toggle-sphinxrelay">Disable</a>
|
||||
{% else %}
|
||||
<a class="ui-button ui-widget ui-corner-all mynode_button" href="#" id="toggle-sphinxrelay">Enable</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user