We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c77426 commit 426dc0fCopy full SHA for 426dc0f
lib/cesium_link_web/live/link_live/form_component.ex
@@ -19,7 +19,9 @@ defmodule CesiumLinkWeb.LinkLive.FormComponent do
19
<.input field={@form[:emoji]} type="emoji" label="Emoji" />
20
<.input field={@form[:url]} type="text" label="URL" />
21
<.input field={@form[:attention]} type="checkbox" label="Attention" />
22
- <.input field={@form[:publish_at]} type="datetime-local" label="Publish At" />
+ <%= if @action == :new do %>
23
+ <.input field={@form[:publish_at]} type="datetime-local" label="Publish At" />
24
+ <% end %>
25
<:actions>
26
<.button phx-disable-with="Saving...">Save Link</.button>
27
</:actions>
0 commit comments