Skip to content

Make spinners in app/assets/javascripts/blob/file_template_selector.js Pajamas-compliant

What does this MR do and why?

This MR updates the loader element in the file_template_selector.js to be Pajamas compliant.

Together with the loader changes, the MR add a little refactoring to reduce jQuery usage in that file.

Screenshots or screen recordings

No visual changes.

Before After
Screenshot_2022-05-06_at_01.24.31 Screenshot_2022-05-06_at_01.23.15

How to set up and validate locally

  1. Go to the repository and create a new file.
  2. Select and apply the template for the file: Screenshot_2022-05-06_at_01.28.10
  3. The loader is shown in the dropdown when the template is loading

MR acceptance checklist

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

Closes #361329 (closed)

Merge request reports

Loading