                                :mime_type mime_type}}
            :handler (fn [resp]
                       (when (= "success" (:status resp))
-                        (init-settings (:id data) state init-data "settings")))})))))
+                        (show-settings-dialog (:id data) state init-data "settings")
+                        #_(init-settings (:id data) state init-data "settings")))})))))
 
 ;;;;
 

        {:keys [resource_type mime_type resource_id]} properties
        badge-id (:id data)
        init-settings (first (plugin-fun (session/get :plugins) "modal" "show_settings_dialog"))]
    (swap! state assoc :evidence {:message nil})
    (if (and (not (blank? narrative)) (blank? name))
      (swap! state assoc :evidence {:message [:div.alert.alert-warning [:p (t :badge/Emptynamefield)]]

       :handler (fn [data]
                  ;eset! visibility-atom new-value)
                  (when (= (:status data) "success")
                    (show-settings-dialog badgeid state init-data "settings")
                    #_(init-settings badgeid state init-data "settings"))
                  )})))

(defn set-page-visibility-to-private [page-id]
