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

✨ Add target_window to actions #3419

Merged
merged 7 commits into from
Nov 29, 2021
Merged

✨ Add target_window to actions #3419

merged 7 commits into from
Nov 29, 2021

Conversation

RocKhalil
Copy link
Contributor

Added the ability to change the target window of the action.
For example, I want to open an Import page in a different window, I'll need to do:

target_window :_blank

@RocKhalil
Copy link
Contributor Author

@jdufresne @mshibuya not sure why I'm marked as a first time contributor, but anyway, can you guys check this please ?

Copy link
Member

@jdufresne jdufresne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be possible to add a test showing the rendered result?

lib/rails_admin/config/actions/base.rb Outdated Show resolved Hide resolved
@RocKhalil
Copy link
Contributor Author

@jdufresne I've added a test, however, I'm not able to install mysql gem on my mac for some reason, so I wasn't able to run it to validate it.
Can you please double check ?

@coveralls
Copy link

coveralls commented Nov 28, 2021

Coverage Status

Changes unknown
when pulling c81597d on RocKhalil:features/open-new-window
into ** on railsadminteam:master**.

@mshibuya mshibuya merged commit 2ee1111 into railsadminteam:master Nov 29, 2021
@mshibuya
Copy link
Member

Merged in, thanks for the contribution 🙌

@RocKhalil RocKhalil deleted the features/open-new-window branch November 29, 2021 10:33
@eliten00b
Copy link

Can we have this back ported and release on version 2.x?

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.

5 participants