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 the ability to define default launcher fields #3488

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

johrstrom
Copy link
Contributor

Fixes #3099 by allowing centers to define launcher fields that should get created when you create a new launcher.

@johrstrom johrstrom closed this Apr 16, 2024
@johrstrom johrstrom reopened this Apr 16, 2024
@Oglopf Oglopf self-requested a review April 17, 2024 14:32
@@ -353,6 +355,13 @@ def add_required_fields(form: [], attributes: {})
add_script_to_form(form: form, attributes: attributes)
end

def add_default_fields(form: [], **_args)
Configuration.launcher_default_items.each do |default_item|
Rails.logger.debug("adding #{default_item} unless #{form.include?(default_item)}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you want to leave this debug in or was it supposed to be yanked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I'll remove it.

Oglopf
Oglopf previously approved these changes Apr 22, 2024
Copy link
Contributor

@Oglopf Oglopf left a comment

Choose a reason for hiding this comment

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

This looks good, left a comment about debug but works for me.

Copy link
Contributor

@Oglopf Oglopf left a comment

Choose a reason for hiding this comment

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

Looks good!

@johrstrom johrstrom merged commit e1a7fec into master Apr 23, 2024
23 checks passed
@johrstrom johrstrom deleted the default-launcher-items branch April 23, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

script configurable required items
3 participants