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

Disabled deleting auto_batch_clusters from edit script forms #3100

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

abujeda
Copy link
Contributor

@abujeda abujeda commented Oct 4, 2023

Removing the "Remove" button from the auto_batch_clusters field in the edit script page

@@ -62,6 +62,6 @@ def script_form_double
end

def script_removable_field?(id)
!['script_auto_scripts'].include?(id.to_s)
!['script_auto_scripts', 'script_auto_batch_clusters'].include?(id.to_s)
Copy link
Contributor

@johrstrom johrstrom Oct 4, 2023

Choose a reason for hiding this comment

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

Rails gives us exclude? to use instead of !include?.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@johrstrom johrstrom merged commit 479058f into OSC:master Oct 4, 2023
20 checks passed
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.

3 participants