Rename FormComponent(s) to just Form

This commit is contained in:
Claudio Ortolina
2025-09-23 09:42:59 +03:00
parent f5c60d2cd1
commit bf0a0a552c
22 changed files with 157 additions and 157 deletions
@@ -1,4 +1,4 @@
defmodule MusicLibraryWeb.ScrobbleRulesLive.FormComponent do
defmodule MusicLibraryWeb.ScrobbleRulesLive.Form do
use MusicLibraryWeb, :live_component
import Ecto.Changeset, only: [get_field: 2]
@@ -46,14 +46,14 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.Index do
@impl true
def handle_info(
{MusicLibraryWeb.ScrobbleRulesLive.FormComponent, {:created, scrobble_rule}},
{MusicLibraryWeb.ScrobbleRulesLive.Form, {:created, scrobble_rule}},
socket
) do
{:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule, at: 0)}
end
def handle_info(
{MusicLibraryWeb.ScrobbleRulesLive.FormComponent, {:updated, scrobble_rule}},
{MusicLibraryWeb.ScrobbleRulesLive.Form, {:updated, scrobble_rule}},
socket
) do
{:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule)}
@@ -106,7 +106,7 @@
on_close={JS.patch(~p"/scrobble-rules")}
>
<.live_component
module={MusicLibraryWeb.ScrobbleRulesLive.FormComponent}
module={MusicLibraryWeb.ScrobbleRulesLive.Form}
id={@scrobble_rule.id || :new}
title={@page_title}
action={@live_action}