 (ns org.broadinstitute.firecloud-ui.page.workspace.monitor.submission-details
-  (:require
-    [dmohs.react :as react]
-    [org.broadinstitute.firecloud-ui.common :as common]
-    [org.broadinstitute.firecloud-ui.common.components :as comps]
-    [org.broadinstitute.firecloud-ui.common.icons :as icons]
-    [org.broadinstitute.firecloud-ui.common.style :as style]
-    [org.broadinstitute.firecloud-ui.common.table :as table]
-    [org.broadinstitute.firecloud-ui.page.workspace.monitor.common :as moncommon]
-    [org.broadinstitute.firecloud-ui.page.workspace.monitor.workflow-details :as workflow-details]
-    [org.broadinstitute.firecloud-ui.endpoints :as endpoints]
-    ))
+    (:require
+      [dmohs.react :as react]
+      [org.broadinstitute.firecloud-ui.common :as common]
+      [org.broadinstitute.firecloud-ui.common.components :as comps]
+      [org.broadinstitute.firecloud-ui.common.icons :as icons]
+      [org.broadinstitute.firecloud-ui.common.style :as style]
+      [org.broadinstitute.firecloud-ui.common.table :as table]
+      [org.broadinstitute.firecloud-ui.page.workspace.monitor.common :as moncommon]
+      [org.broadinstitute.firecloud-ui.page.workspace.monitor.workflow-details :as workflow-details]
+      [org.broadinstitute.firecloud-ui.endpoints :as endpoints]
+      [org.broadinstitute.firecloud-ui.utils :as utils]))
 
 
 (defn- color-for-submission [submission]

       :data (:workflows props)
       :->row (fn [row]
                [{:type (row "entityType") :name (row "entityName")}
                 (row "errors")])}])})


(react/defc AbortButton

        (merge (select-keys props [:workspace-id :submission-id])
               {:workflow-id (get-in @state [:selected-workflow :id])}))]])})

(defn- getErrorsFromInputResolutions [inputResolutions]
  (let [errors (filter (fn [m] (contains? m "error")) inputResolutions)
        keyedErrors (map utils/keywordize-keys errors)]
       (map (fn [k] (:error k)) keyedErrors)))

(defn- getErrorInputsFromInputResolutions [inputResolutions]
  (let [errors (filter (fn [m] (contains? m "error")) inputResolutions)
        keyedErrors (map utils/keywordize-keys errors)]
       (map (fn [k] (:inputName k)) keyedErrors)))

(react/defc WorkflowFailuresTable
  {:render
