move staging to container
This commit is contained in:
@ -57,16 +57,6 @@ defmodule CanneryWeb.PackLive.Show do
|
||||
{:noreply, socket |> put_flash(:info, prompt) |> push_navigate(to: redirect_to)}
|
||||
end
|
||||
|
||||
def handle_event(
|
||||
"toggle_staged",
|
||||
_params,
|
||||
%{assigns: %{pack: pack, current_user: current_user}} = socket
|
||||
) do
|
||||
{:ok, pack} = pack |> Ammo.update_pack(%{"staged" => !pack.staged}, current_user)
|
||||
|
||||
{:noreply, socket |> display_pack(pack)}
|
||||
end
|
||||
|
||||
def handle_event(
|
||||
"delete_shot_record",
|
||||
%{"id" => id},
|
||||
|
Reference in New Issue
Block a user