   (render-state [_ _] (dom/div (:input data)))
   (did-mount [_]
              (let [editor (.edit js/ace (om/get-node owner))]
-               (.setOptions editor
-                            (clj->js {:maxLines 15}))
+               (.setOptions editor (clj->js {:maxLines 15}))
                (.setMode (.getSession editor) "ace/mode/clojure")
                (.setHighlightActiveLine editor false)
                (.setHighlightGutterLine editor false)


(defcomponent select-deployment [{:keys [deployments deployment]} owner]
  (render [_] 
          (dom/div
            (b/toolbar {}
                       (apply (partial b/dropdown {:bs-style "primary" 
                                                   :style {:width left-bar-width}
                                                   :title (or (:id deployment) "Deployments")})
                              (for [[id info] (reverse (sort-by (comp :created-at val) 
                                                                deployments))]
                                (b/menu-item {:key id
                                              :on-select (fn [_] 
                                                           ;(stop-tracking! id)
                                                           (start-tracking! id))} 
                                             id)))))))

(defn is-job-entry? [job-id entry]
  (if-let [entry-job-id (if (= (:fn entry) :submit-job)

            (if-let [job (and selected-job jobs (jobs selected-job))]
              (dom/div
               (p/panel
                 {:header (om/build section-header 
                                    {:text "Catalog" 
                                     :visible (:job visible) 
                                     :type :job} {})}
                (if (:job visible)
                  (om/build clojure-block {:input (:pretty-catalog job)})))

