 
 (defn init-data [page-id state]
   (ajax/GET
-     (path-for (str "/obpv1/page/view/" page-id) true)
-     {:handler (fn [data]
+    (path-for (str "/obpv1/page/view/" page-id) true)
+    {:handler (fn [data]
 
-                 (reset! state (assoc data
-                                      :page-id page-id
-                                      :show-link-or-embed-code nil
-                                      :permission "success"
-                                      :badge-small-view false)))}
-     (fn [] (swap! state assoc :permission "error"))))
+                (reset! state (assoc data
+                                :page-id page-id
+                                :show-link-or-embed-code nil
+                                :permission "success"
+                                :badge-small-view false)))}
+    (fn [] (swap! state assoc :permission "error"))))
 
 
 (defn handler [params]

    ))

(def ^:export modalroutes
  {:page {:view handler
          :block-type edit/contenttype}})

            [reagent.session :as session]
            [salava.core.ui.error :as err]
            [salava.core.ui.modal :refer [set-new-view]]
            [salava.page.ui.helper :refer [badge-block html-block file-block heading-block tag-block]]))



