mirror of
https://github.com/ClaperCo/Claper.git
synced 2025-12-16 03:47:56 +01:00
chore: refactor toggle interaction modal
This commit is contained in:
@@ -766,7 +766,7 @@ defmodule ClaperWeb.EventLive.Manage do
|
|||||||
def handle_event(
|
def handle_event(
|
||||||
"toggle-interaction-modal",
|
"toggle-interaction-modal",
|
||||||
_params,
|
_params,
|
||||||
%{assigns: %{interaction_modal: interaction_modal = true}} = socket
|
%{assigns: %{interaction_modal: _interaction_modal = true}} = socket
|
||||||
) do
|
) do
|
||||||
{:noreply, socket |> push_navigate(to: ~p"/e/#{socket.assigns.event.code}/manage")}
|
{:noreply, socket |> push_navigate(to: ~p"/e/#{socket.assigns.event.code}/manage")}
|
||||||
end
|
end
|
||||||
@@ -775,7 +775,7 @@ defmodule ClaperWeb.EventLive.Manage do
|
|||||||
def handle_event(
|
def handle_event(
|
||||||
"toggle-interaction-modal",
|
"toggle-interaction-modal",
|
||||||
_params,
|
_params,
|
||||||
%{assigns: %{interaction_modal: interaction_modal = false}} = socket
|
%{assigns: %{interaction_modal: _interaction_modal}} = socket
|
||||||
) do
|
) do
|
||||||
{:noreply, socket |> assign(:interaction_modal, true)}
|
{:noreply, socket |> assign(:interaction_modal, true)}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user