      :titles []
      :title ""
      :last-saved nil
+     :last-title ""
      :channel (chan)}))
 
 ;; Title field


(defn save-document [app]
  (om/update! app :last-saved (js/Date.))
  (p/set-document (:title @app) (:input @app))
  (om/update! app :titles (p/get-all-titles)))


      (dom/div #js {:id "title-field"}
        (dom/input #js {:type "text"
                        :onChange #(handle-title-change % app)
                        :onBlur #(handle-title-blur % app)
                        :value (:title app)})))))

;; Left menu
