Skip to content

Commit

Permalink
Add responsive manager
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Apr 16, 2024
1 parent dcc0bf4 commit f05b72b
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 140 deletions.
10 changes: 10 additions & 0 deletions lib/claper_web/live/event_live/manage.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ defmodule ClaperWeb.EventLive.Manage do

socket =
socket
|> assign(:settings_modal, false)
|> assign(:attendees_nb, 1)
|> assign(:event, event)
|> assign(:sort_questions_by, "date")
Expand Down Expand Up @@ -721,6 +722,15 @@ defmodule ClaperWeb.EventLive.Manage do
|> JS.push("maybe-redirect", target: "#add-modal")
end

def toggle_settings_modal(js \\ %JS{}) do
js
|> JS.toggle(
to: "#settings-modal",
out: "animate__animated animate__fadeOut",
in: "animate__animated animate__fadeIn"
)
end

defp apply_action(socket, :show, _params) do
socket
end
Expand Down
Loading

0 comments on commit f05b72b

Please sign in to comment.