Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign in modal #193

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Sign in modal #193

merged 2 commits into from
Sep 12, 2024

Conversation

adrienpoly
Copy link
Owner

add remote modal for sign in

  • adds a new modal component
  • adds a new remote modal controller Concern

to open a page in a remote modal update the turbo frame target

<%= link_to sign_in_path(redirect_to: request.fullpath), data: {turbo_frame: "modal"} do %>

add the concern to the controller

class SessionsController < ApplicationController
  include RemoteModal
  allowed_remote_modal_actions :new
  ...
end

CleanShot 2024-09-12 at 18 07 35@2x

@adrienpoly adrienpoly merged commit 47f5757 into main Sep 12, 2024
3 checks passed
@adrienpoly adrienpoly deleted the sign-in-modal branch September 12, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant