Fix javascript errors that occur due to missing elements on project page
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?
returnsfalse
inee/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 |
---|---|
No issue |
How to set up and validate locally
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Doug Stull