                            (if (or (= state "Y") (= state "y"))
                              "btn-success"
                              "btn-danger"))
-               :on-click #(update-state grp sub-grp (y-or-n-toogle state))}
+               :on-click #(update-state grp sub-grp (y-or-n-toggle state))}
       (y-or-n-text state)]]))

;;      Filename: network_state.cljs
;; Creation Date: Sunday, 11 October 2015 10:39 AM AEDT
;; Last Modified: Sunday, 11 October 2015 05:18 PM AEDT
;;        Author: Tim Cross <theophilusx AT gmail.com>
;;   Description:
;;

            [arcis.ajax :as ajax]
            [arcis.state :as state]))

(defn y-or-n-toggle [val]
  (if (or (= val "Y") (= val "y"))
    "N"
    "Y"))
