             repos (:repos @app-state)]
         (if (< current-index (count repos))
           (om/build repo-config-panel {:index current-index
-                                       :auth (:auth state)})                              
+                                       :auth (:auth state)})
           (dom/h2 nil "Add your repos"))))))
 
 (defn widget [state owner]


             (om/update! (registered-state-cur current-index) [0] :unregistered))))))

;; {:auth - :repo -}
(defn repo-config-panel [state owner]
  (reify

                         (fn [e] (om/update! (current-index-cur) [0] index))}
                  (get repo "full_name")))]
        (apply dom/div nil
          (map-indexed repo-button (:repos @app-state)))))))

(defn- register-repo [current-index auth-token repo-name]
  (let [register-repo-url (str/format "/api/user/%s/register" repo-name)]  
