Update editing translation
This commit is contained in:
@ -11,9 +11,9 @@ defmodule OutlookWeb.TranslationLive.NewEdit do
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<.live_component
|
||||
module={OutlookWeb.TranslationLive.FormComponent}
|
||||
module={FormComponent}
|
||||
id={@form_cmpnt_id}
|
||||
title="New Translation"
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
translation={@translation}
|
||||
translation_content={@translation_content}
|
||||
@ -62,4 +62,7 @@ defmodule OutlookWeb.TranslationLive.NewEdit do
|
||||
send_update(self(), FormComponent, deepl_translation: payload, id: @form_cmpnt_id)
|
||||
{:noreply, socket}
|
||||
end
|
||||
|
||||
defp page_title(:new), do: "New Translation"
|
||||
defp page_title(:edit), do: "Edit Translation"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user