11501: Simplified helper method call. Changed wording of run time description.
[arvados.git] / apps / workbench / app / models / job_work_unit.rb
index a0a7c8796ef1783f7c7aba1fcfb9f54b3cba5451..5b1d1b7e35b416e7ee3eb09bcad4a6d60d509b6e 100644 (file)
@@ -71,14 +71,20 @@ class JobWorkUnit < ProxyWorkUnit
     get(:log)
   end
 
-  def output
-    get(:output)
+  def outputs
+    items = []
+    items << get(:output) if get(:output)
+    items
   end
 
   def can_cancel?
     state_label.in? ["Queued", "Running"]
   end
 
+  def confirm_cancellation
+    "All unfinished child jobs and pipelines will also be canceled, even if they are being used in another job or pipeline. Are you sure you want to cancel this job?"
+  end
+
   def uri
     uuid = get(:uuid)
     "/jobs/#{uuid}"