From f11dd191c1457008f53f733a6d6da494c391db48 Mon Sep 17 00:00:00 2001 From: Shubham Agarwal Date: Wed, 10 Jan 2018 14:43:01 +0530 Subject: [PATCH] diagnostics: Enable button when enabled but not running Signed-off-by: Shubham Agarwal Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- plinth/modules/openvpn/templates/openvpn.html | 2 +- plinth/modules/tor/templates/tor.html | 2 +- plinth/templates/service.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plinth/modules/openvpn/templates/openvpn.html b/plinth/modules/openvpn/templates/openvpn.html index ac65c4ad9..f0b26979c 100644 --- a/plinth/modules/openvpn/templates/openvpn.html +++ b/plinth/modules/openvpn/templates/openvpn.html @@ -111,7 +111,7 @@ {% endif %}

- {% include "diagnostics_button.html" with module="openvpn" enabled=status.is_running %} + {% include "diagnostics_button.html" with module="openvpn" enabled=status.enabled %}

{% trans "Configuration" %}

diff --git a/plinth/modules/tor/templates/tor.html b/plinth/modules/tor/templates/tor.html index 5e66835f8..190468a8a 100644 --- a/plinth/modules/tor/templates/tor.html +++ b/plinth/modules/tor/templates/tor.html @@ -55,7 +55,7 @@ {% endif %}

- {% 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 %}
diff --git a/plinth/templates/service.html b/plinth/templates/service.html index 0025d72c8..1cffd7c82 100644 --- a/plinth/templates/service.html +++ b/plinth/templates/service.html @@ -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 %}