                                    :classes ((om/factory ClassesView) selected-competition)
                                    :competitions ((om/factory CompetitionsView)
                                                   {:competitions competitions
-                                                   :status (:app/import-status (om/props this))
+                                                   :import-status (:app/import-status (om/props this))
+                                                   :status (:app/status (om/props this))
                                                    })
                                    :schedule ((om/factory ScheduleView) selected-competition)
                                    :adjudicators ((om/factory AdjudicatorsView) selected-competition)

  (render
   [this]
   (let [competitions (:competitions (om/props this))
         status (:status (om/props this))]
     (log "Render CompetitionView")
     (log (om/props this))
     (log "Import Status")
      (log status)
     (dom/div
      nil
      (dom/h2
       nil
       "Mina tävlingar")
      (dom/span nil "Välj en tävling att arbete med.")
      (dom/table
       #js {:className "table table-hover"}
       (dom/thead
        nil
        (dom/tr
         nil
         (dom/th nil "Namn")
         (dom/th nil "Plats")))
       (apply dom/tbody nil (map competition competitions)))
      
      (dom/div
       nil
       (dom/span #js {:className (str "btn btn-default btn-file"
                                      (when (= status :importing) " disabled"))} "Importera.."
                 (dom/input #js {:type "file"
                                 :onChange #(do
                                              (om/transact! reconciler `[(app/set-import-status
                                                                          {:status :importing})])
                                              (on-click-import-file %))}))
       (condp = status
         :none (dom/h3 nil "")
         :importing (dom/h3 nil "Importerar, vänligen vänta..")))))))

;;;;;;;;;;;;;;;;;;;;
;; Classes

  (query [this]
         [:app/selected-page
          :app/import-status
          :app/status
          {:app/competitions (om/get-query Competition)}
          {:app/selected-competition
           (concat (om/get-query ClassesView)
