diagnostics: Enable button when enabled but not running

Signed-off-by: Shubham Agarwal <shubhama@thoughtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Shubham Agarwal 2018-01-10 14:43:01 +05:30 committed by Sunil Mohan Adapa
parent 8cfe908022
commit f11dd191c1
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@
{% endif %}
</p>
{% include "diagnostics_button.html" with module="openvpn" enabled=status.is_running %}
{% include "diagnostics_button.html" with module="openvpn" enabled=status.enabled %}
<h3>{% trans "Configuration" %}</h3>

View File

@ -55,7 +55,7 @@
{% endif %}
</p>
{% include "diagnostics_button.html" with module="tor" enabled=status.is_running %}
{% include "diagnostics_button.html" with module="tor" enabled=status.enabled %}
{% if status.hs_enabled %}
<div class="row">

View File

@ -59,7 +59,7 @@
{% block diagnostics %}
{% if diagnostics_module_name %}
{% include "diagnostics_button.html" with module=diagnostics_module_name enabled=service.is_running %}
{% include "diagnostics_button.html" with module=diagnostics_module_name enabled=service.is_enabled %}
{% endif %}
{% endblock %}