 (enable-console-print!)
 
 (defonce app-state (atom {:text "Alert Viewer"
-                          :history nil
                           :stats nil
                           :alerts nil}))
 

(defn build-main []
  (om/root alert-list app-state {:target app-root}))

(defn main []
  (current-alerts)
  (build-main))

             :onClick #(alert-history
                        key
                        (fn [r]
                          (om/root alert-detail
                                   {:history (get-in r [:hits :hits])}
                                   {:target app-root})))}
