Pārlūkot izejas kodu

Allow to run debug query in UI

theenglishway (time) 4 gadi atpakaļ
vecāks
revīzija
9fc83f9601
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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