            on-done (fn [{:keys [success? xhr]}]
                      (if success?
                        (swap! state assoc :submissions
-                         (create-mock-submissions-list (:workspace props)))
+                         (utils/parse-json-string (.-responseText xhr) ))
                        (swap! state assoc :error (.-responseText xhr))))]
        (utils/ajax-orch url
          {:canned-response canned-response

    [org.broadinstitute.firecloud-ui.common.style :as style]
    [org.broadinstitute.firecloud-ui.paths :as paths]
    [org.broadinstitute.firecloud-ui.utils :as utils]))

(defn- submission-running? [submission]
  (= "Running" (:status submission)))


(defn- create-mock-submissions-list [workspace]



(defn- render-loaded-submissions [submissions]
  (let [count-total (count submissions)]
    [:div {:style {:padding "1em"}}
     [:div {} (str "Monitor Submissions")]
     (if (= count-total 0)
       [:div {:style {:paddingTop "1em"}}
        [:em {} (str "There are no submissions.")]]
       (map render-running-loaded-single-submission-summary submissions))]))


(react/defc SubmissionsList
