fix: Fix module name for Show -> Update in generator (#109)

This commit is contained in:
Steffen Beyer 2023-10-12 13:57:17 +02:00 committed by GitHub
parent c93c6064ed
commit 3dc29edcec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ defmodule <%= inspect Module.concat(@web_module, @resource_alias) %>Live.Show do
<%= if @update_action do %> <%= if @update_action do %>
<.modal :if={@live_action == :edit} id="<%= @resource_singular %>-modal" show on_cancel={JS.patch(~p"<%= @route_prefix %>/#{@<%= @resource_singular %>}")}> <.modal :if={@live_action == :edit} id="<%= @resource_singular %>-modal" show on_cancel={JS.patch(~p"<%= @route_prefix %>/#{@<%= @resource_singular %>}")}>
<.live_component <.live_component
module={<%= @web_module %>.Live.FormComponent} module={<%= inspect Module.concat(@web_module, @resource_alias) %>Live.FormComponent}
id={@<%= @resource_singular %>.id} id={@<%= @resource_singular %>.id}
title={@page_title} title={@page_title}
action={@live_action} action={@live_action}