diff --git a/luasrc/view/tasks/docker.htm b/luasrc/view/tasks/docker.htm index 454bf21..b412f33 100644 --- a/luasrc/view/tasks/docker.htm +++ b/luasrc/view/tasks/docker.htm @@ -1,57 +1,70 @@ +<% +local taskd = require "luci.model.tasks" +local status = taskd.status(self.task_id) + +-- Check if a task is running +local task_running = status.running -<% if self.task_start_failed then %> -
+-- Check for a task start failure +if self.task_start_failed then +%> + <% end %> <%+cbi/map%> -<% -local task_running = false -local taskd = require "luci.model.tasks" -local status = taskd.status(self.task_id) -task_running = status.running --%> +