|
@@ -52,13 +52,13 @@ defmodule VaccinsWeb.IndexLive do
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
@impl true
|
|
@impl true
|
|
|
- def handle_event("zones_filter_change", %{"zones_filter" => %{"zones" => zones}}, socket) do
|
|
|
|
|
|
|
+ def handle_event("areas_filter_change", %{"areas_filter" => %{"areas" => areas}}, socket) do
|
|
|
{:noreply,
|
|
{:noreply,
|
|
|
- socket |> push_patch(to: Routes.index_path(socket, :index, geographic_areas: zones))}
|
|
|
|
|
|
|
+ socket |> push_patch(to: Routes.index_path(socket, :index, geographic_areas: areas))}
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
- def handle_event("zones_filter_change", params, socket)
|
|
|
|
|
- when not is_map_key(params, "zones_filter") do
|
|
|
|
|
|
|
+ def handle_event("areas_filter_change", params, socket)
|
|
|
|
|
+ when not is_map_key(params, "areas_filter") do
|
|
|
{:noreply, socket |> push_patch(to: Routes.index_path(socket, :index))}
|
|
{:noreply, socket |> push_patch(to: Routes.index_path(socket, :index))}
|
|
|
end
|
|
end
|
|
|
|
|
|