diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 1755b38..34b405a 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/app/javascript/controllers/index.js b/app/javascript/controllers/index.js index a1f30d3..c00a360 100644 --- a/app/javascript/controllers/index.js +++ b/app/javascript/controllers/index.js @@ -34,8 +34,5 @@ application.register("navbar-link", NavbarLinkController) import PagyController from "./pagy_controller" application.register("pagy", PagyController) -import SearchCountriesController from "./search_countries_controller" -application.register("search-countries", SearchCountriesController) - import SearchLocationsController from "./search_locations_controller" application.register("search-locations", SearchLocationsController) diff --git a/app/javascript/controllers/search_countries_controller.js b/app/javascript/controllers/search_countries_controller.js deleted file mode 100644 index 29777bb..0000000 --- a/app/javascript/controllers/search_countries_controller.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -export default class extends Controller { - static targets = [ - "searchField", - "searchResults", - ]; - static values = { - searchUrl: String, - }; - - connect() { - const _ = require("lodash"); - - this.debouncedSearch = _.debounce((query) => { - this.searchResultsTarget.innerHTML = ""; - this.searchResultsTarget.append( - // Show loading spinner - new DOMParser().parseFromString( - '