Prototype CSS only calendar result
This commit is contained in:
8
lib/mihainator_web/live/result_live.ex
Normal file
8
lib/mihainator_web/live/result_live.ex
Normal file
@@ -0,0 +1,8 @@
|
||||
defmodule MihainatorWeb.ResultLive do
|
||||
use MihainatorWeb, :live_view
|
||||
|
||||
@impl Phoenix.LiveView
|
||||
def mount(_params, _session, socket) do
|
||||
{:ok, socket}
|
||||
end
|
||||
end
|
||||
1350
lib/mihainator_web/live/result_live.html.heex
Normal file
1350
lib/mihainator_web/live/result_live.html.heex
Normal file
File diff suppressed because it is too large
Load Diff
@@ -29,10 +29,12 @@ defmodule MihainatorWeb.UploadLive do
|
||||
|
||||
@impl Phoenix.LiveView
|
||||
@spec handle_info({reference(), any()}, any()) :: {:noreply, any()}
|
||||
def handle_info({ref, _result}, socket) do
|
||||
def handle_info({ref, result}, socket) do
|
||||
Process.demonitor(ref, [:flush])
|
||||
|
||||
{:noreply, socket}
|
||||
socket = assign(socket, :calendar_dates, result)
|
||||
|
||||
{:noreply, push_navigate(socket, to: ~p"/result")}
|
||||
end
|
||||
|
||||
defp error_to_string(:too_large), do: "Too large"
|
||||
|
||||
Reference in New Issue
Block a user