소스 검색

Allow to run debug query in UI

theenglishway (time) 5 년 전
부모
커밋
9fc83f9601
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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