瀏覽代碼

Allow to run debug query in UI

theenglishway (time) 4 年之前
父節點
當前提交
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