1
0
forked from shibao/cannery

remove extra @impl true

This commit is contained in:
2023-03-16 17:40:00 -04:00
parent ab8561fcf0
commit 3acecb9a93
27 changed files with 132 additions and 152 deletions
lib/cannery_web/live
ammo_group_live
ammo_type_live
container_live
invite_live
range_live
tag_live
priv/gettext

@ -106,12 +106,10 @@ defmodule CanneryWeb.ContainerLive.Index do
{:noreply, socket}
end
@impl true
def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do
{:noreply, socket |> assign(:view_table, !view_table) |> display_containers()}
end
@impl true
def handle_event("search", %{"search" => %{"search_term" => ""}}, socket) do
{:noreply, socket |> push_patch(to: Routes.container_index_path(Endpoint, :index))}
end

@ -50,7 +50,6 @@ defmodule CanneryWeb.ContainerLive.Show do
{:noreply, socket}
end
@impl true
def handle_event(
"delete_container",
_params,
@ -84,12 +83,10 @@ defmodule CanneryWeb.ContainerLive.Show do
{:noreply, socket}
end
@impl true
def handle_event("toggle_show_used", _params, %{assigns: %{show_used: show_used}} = socket) do
{:noreply, socket |> assign(:show_used, !show_used) |> render_container()}
end
@impl true
def handle_event("toggle_table", _params, %{assigns: %{view_table: view_table}} = socket) do
{:noreply, socket |> assign(:view_table, !view_table) |> render_container()}
end