diff --git a/src/controllers/scheduledtaskspage.js b/src/controllers/scheduledtaskspage.js
index 0f0fc715fb..4ca89b92de 100644
--- a/src/controllers/scheduledtaskspage.js
+++ b/src/controllers/scheduledtaskspage.js
@@ -50,8 +50,8 @@ define(["jQuery", "loading", "events", "globalize", "serverNotifications", "huma
html += "";
if (task.State === "Running") {
html += '';
- } else {
- html += '';
+ } else if (task.State === "Idle") {
+ html += '';
}
html += "";
}
@@ -106,13 +106,11 @@ define(["jQuery", "loading", "events", "globalize", "serverNotifications", "huma
if (state === "Running") {
elem.classList.remove("btnStartTask");
elem.classList.add("btnStopTask");
- elem.classList.remove("hide");
elem.querySelector("i").innerHTML = "stop";
elem.title = globalize.translate("ButtonStop");
- } else {
+ } else if (state === "Idle") {
elem.classList.add("btnStartTask");
elem.classList.remove("btnStopTask");
- elem.classList.add("hide");
elem.querySelector("i").innerHTML = "play_arrow";
elem.title = globalize.translate("ButtonStart");
}