Explorar o código

Allow to run debug query in UI

theenglishway (time) %!s(int64=4) %!d(string=hai) anos
pai
achega
9fc83f9601
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/vaccins_web/live/location_component.ex

+ 2 - 0
lib/vaccins_web/live/location_component.ex

@@ -129,4 +129,6 @@ defmodule VaccinsWeb.LocationComponent do
   end
 
   defp signal_availabilities(socket), do: socket
+
+  defp to_json_query(l = %{availability_query: q, provider: provider}), do: q |> provider.to_url() |> URI.to_string()
 end