Skip to content

Fix javascript errors that occur due to missing elements on project page

Doug Stull requested to merge fix-elements-not-existing-on-project-new into master

What does this MR do and why?

Fix javascript errors that occur due to missing elements on project page

  • when ::Gitlab::CurrentSettings.custom_project_templates_enabled? returns false in ee/app/views/projects/_project_templates.html.haml we don't have the needed defined elements to add listeners to so we need to make the listener logic conditional.

Changelog: fixed EE: true

Screenshots or screen recordings

Before After
screenshot_2023-11-21_at_16.38.33 No issue

How to set up and validate locally

  1. Run ee/spec/features/projects/new_project_spec.rb:149 spec on master and then on this branch.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Doug Stull

Merge request reports