                   :username org-name
                   :vcs_type vcs-type}]
         :sidebar (build-legacy legacy-branch-picker (:legacy/state (om-next/props this)))
-        :main-content (when-let [org (:org-for-runs (om-next/props this))]
-                        (org-workflow-runs org))}))))
+        :main-content (if-let [org (:org-for-runs (om-next/props this))]
+                        (org-workflow-runs org)
+                        (spinner))}))))

  Object
  (render [this]
    (component
      (-> this om-next/props :project/workflow-runs run-row-collection))))

(def project-workflow-runs (om-next/factory ProjectWorkflowRuns))


  Object
  (render [this]
    (component
      (if-let [runs (seq (:organization/workflow-runs (om-next/props this)))]
        (run-row-collection runs)
        (let [org-name (:organization/name (om-next/props this))]
          (card/basic
           (empty-state/empty-state
            {:icon (icon/workflows)
             :heading (html [:span (empty-state/important org-name) " has no workflows defined yet"])
             :subheading (str "Add a workflow section to one of " org-name "'s project configs to start running workflows.")})))))))

(def org-workflow-runs (om-next/factory OrgWorkflowRuns))

