From 66b93ab784ad287142964559eaf9f89cb2fa39df Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 30 Jan 2018 08:12:53 +0100 Subject: [PATCH] luci-app-wman3: show info if mwan3 is not global enabled Signed-off-by: Florian Eckert --- applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm | 3 +++ applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm | 4 +++- applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm | 3 +++ .../luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm index b7bb6de1c..70eac7252 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_detail.htm @@ -28,6 +28,9 @@

<%:MWAN Status - Detail%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%> diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm index f9a0fa2be..f1c5d8fd9 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_diagnostics.htm @@ -55,7 +55,9 @@

<%:MWAN Status - Diagnostics%>

- + <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>

diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm index a796af815..21e59a801 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_interface.htm @@ -66,6 +66,9 @@

<%:MWAN Status - Interface%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%> diff --git a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm index b812e5b88..77d009231 100644 --- a/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm +++ b/applications/luci-app-mwan3/luasrc/view/mwan/status_troubleshooting.htm @@ -28,6 +28,9 @@

<%:MWAN Status - Troubleshooting%>

+ <%if not require("luci.sys").init.enabled("mwan3") then%> +
<%:INFO: MWAN not running%>
+ <%end%>
<%:Collecting data...%> -- 2.11.0