                                :resource_id resource_id
                                :resource_type resource_type
                                :mime_type mime_type}}
-           :handler #(show-settings-dialog (:id @state) state init-data)})))))
+           :handler #(init-settings (:id @state) state init-data)})))))
 
 ;;;;
 

(defn save-badge-evidence [data state init-data]
  (let [{:keys [id name narrative url resource_visibility properties]} (:evidence @state)
        {: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)]]

                                (reset! input-mode nil)
                                (reset! (cursor state [:show-form]) nil)
                                (reset! (cursor state [:show-preview]) nil)
                                (save-badge-evidence @(cursor state [:badge-settings]) state init-data)
                                (swap! state assoc :tab [se/settings-tab-content data state init-data]
                                       :tab-no 2)

                                )}
          (t :core/Add)]
