Parcourir la source

Allow to run debug query in UI

theenglishway (time) il y a 4 ans
Parent
commit
9fc83f9601
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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