|
|
@@ -64,6 +64,10 @@ defmodule VaccinsWeb.IndexLive do
|
|
|
{:noreply, socket |> push_patch(to: Routes.index_path(socket, :index))}
|
|
|
end
|
|
|
|
|
|
+ def handle_event("areas_filter_reset", _, socket) do
|
|
|
+ {:noreply, socket |> push_patch(to: Routes.index_path(socket, :index))}
|
|
|
+ end
|
|
|
+
|
|
|
def handle_event("add_location", %{"location_raw" => params}, socket) do
|
|
|
case params |> LocationStore.add_location() do
|
|
|
:ok -> {:noreply, socket |> push_patch(to: Routes.index_path(socket, :index))}
|