forked from shibao/cannery
use phoenix component modal
This commit is contained in:
@ -125,12 +125,15 @@
|
||||
</div>
|
||||
|
||||
<%= if @live_action in [:new, :edit] do %>
|
||||
<%= live_modal(CanneryWeb.InviteLive.FormComponent,
|
||||
id: @invite.id || :new,
|
||||
title: @page_title,
|
||||
action: @live_action,
|
||||
invite: @invite,
|
||||
return_to: Routes.invite_index_path(@socket, :index),
|
||||
current_user: @current_user
|
||||
) %>
|
||||
<.modal return_to={Routes.invite_index_path(@socket, :index)}>
|
||||
<.live_component
|
||||
module={CanneryWeb.InviteLive.FormComponent}
|
||||
id={@invite.id || :new}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
invite={@invite}
|
||||
return_to={Routes.invite_index_path(@socket, :index)}
|
||||
current_user={@current_user}
|
||||
/>
|
||||
</.modal>
|
||||
<% end %>
|
||||
|
Reference in New Issue
Block a user