                                         ;(if badge_content_id (open-modal badge_content_id true))
                                         )}))
 
-(defn init-data [state]
+(defn init-data [state {:keys [current-country name-tag issuer-name order]}]
   (ajax/GET
-   (path-for "/obpv1/application/")     
-   {:handler (fn [data]
+   (path-for "/obpv1/application/")
+   {:params  {:country  (trim current-country)
+              :name_tag (trim name-tag)
+              :issuer   (trim issuer-name)
+              :order    (trim order)}
+    :handler (fn [data]
                (let [{:keys [applications countries user-country]} data]
                  (swap! state assoc :applications applications
                         :countries countries
-                        :country-selected user-country
                         )))}))
 
 

        [text-field :name-tag "badge name and keywords" "search by badge name and keywords" state]
        [text-field :issuer-name (t :gallery/Issuer) (t :gallery/Searchbyissuer) state]
        ])
     [g/grid-radio-buttons (str (t :core/Order) ":") "order" (order-radio-values) :order state search-timer]]))

(defn badge-grid-element [element-data state]
  (let [{:keys [id image_file name description issuer_content_name issuer_content_url recipients badge_content_id]} element-data

            [clojure.string :as s]
            [komponentit.autocomplete :refer [multiple-autocomplete]]
            [schema.core :as sc]
            [cemerick.url :as url]
            [salava.core.i18n :as i18n :refer [t]]))
;;Modal


