-
Notifications
You must be signed in to change notification settings - Fork 119
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
Conversation
@@ -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)}") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Fixes #3099 by allowing centers to define launcher fields that should get created when you create a new launcher.