     [:div.clr-737fa]])
 
 (sablono/defhtml modal-overlay []
-  [:div.modal-overlay-120d3 {:on-click close-modal}])
+  [:div.modal-overlay-120d3 {:on-click click-modal-overlay}])
 
 (sablono/defhtml new-project-step-1 []
   [:div.modal-body-fe4db
     [:div.modal-chunk-2041a
-      [:button.big-btn-a5d18 {:on-click click-new-from-scratch-btn}
+      [:button.big-btn-a5d18 {:on-click click-new-project-btn}
         "New Project"]
       [:p.small-info-b72e9
         "Create a new project from scratch."]]

;     [:div.modal-chunk-2041a
;       "*TODO: details of the new project*"]
;     [:div.modal-bottom-050c3
;       [:button {:on-click click-new-project-done-btn} "Got it!"]]])

;;------------------------------------------------------------------------------
;; Quiescent Components

  [filename]
  (let [dirname (.dirname path filename)]
    (open dirname)))

(defn- click-modal-overlay []
  ;; do not let them close the modal while a new project is being created
  (when-not (= 3 (:new-project-step @state))
    (close-add-project-modal)))

;;------------------------------------------------------------------------------
;; Sablono Templates
