Skip to content

Commit 2dc76bf

Browse files
format code
1 parent 37154cc commit 2dc76bf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/cesium_link_web/live/link_live/index.ex

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ defmodule CesiumLinkWeb.LinkLive.Index do
77
@impl true
88
def mount(_params, _session, socket) do
99
links = Links.list_unarchived_links()
10-
enriched_links = Enum.map(links, fn link ->
11-
in_future = publish_in_future?(link)
12-
%{link | in_future: in_future}
13-
end)
10+
11+
enriched_links =
12+
Enum.map(links, fn link ->
13+
in_future = publish_in_future?(link)
14+
%{link | in_future: in_future}
15+
end)
1416

1517
{:ok, stream(socket, :links, enriched_links)}
1618
end
1719

18-
1920
@impl true
2021
def handle_params(params, _url, socket) do
2122
{:noreply, apply_action(socket, socket.assigns.live_action, params)}

lib/cesium_link_web/live/link_live/index.html.heex

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
</:action>
6969
</.table>
7070

71-
7271
<.modal :if={@live_action in [:new, :edit]} id="link-modal" show on_cancel={JS.patch(~p"/admin/links")}>
7372
<.live_component module={CesiumLinkWeb.LinkLive.FormComponent} id={@link.id || :new} title={@page_title} action={@live_action} link={@link} patch={~p"/admin/links"} />
7473
</.modal>

0 commit comments

Comments
 (0)