Rename FormComponent(s) to just Form
This commit is contained in:
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user