            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

  [:div {:style {:border "1px solid black" :marginTop "1em" :position "relative"}}
   [:div {:style {:float "left" :marginLeft "1em" :padding "0.25em 0"}}
    [:div {:style {:fontWeight 500 :fontSize "120%" :paddingBottom "0.25em"}}
     (:methodConfigurationName submission)]
    [:div {} (str "Status: " (:status submission)
                  " | Started At: " (:submissionDate submission))
                  " | By " (:submitter submission)]
    (let [submissionEntity (:submissionEntity submission)
          entityName (:entityName submissionEntity)
          entityType (:entityType submissionEntity)]
      [:div {} (str "Entities: " entityType "/" entityName)])]
   [:div {:style {:float "right"}}
    ;[comps/Button
    ; {:color "#BBB"
    ;  :text "Details..."
    ;  :onClick #(js/alert "take me to the details please")}]
    [comps/Button
     {:color "Red"
      :text "Abort"



(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
