app/models/foreman_tasks/task.rb in foreman-tasks-0.8.3 vs app/models/foreman_tasks/task.rb in foreman-tasks-0.8.4
- old
+ new
@@ -67,9 +67,13 @@
def username
self.owner.try(:login)
end
+ def execution_type
+ self.start_at.to_i == self.started_at.to_i ? N_('Immediate') : N_('Delayed')
+ end
+
def humanized
{ action: label,
input: "",
output: "" }
end