Replace toggle with checkbox in upload/delete file, create dir modals

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

To match the Pajamas guidelines in the Repository page, in upload file and create directory modals 'create a new MR' toggle component is replaced by the checkbox.

Closes: #479249 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After

before.mp4

upload-file-after.mp4

create-dir-after.mp4

How to set up and validate locally

  1. Navigate to the Code -> Repository page.
  2. Click on the +.
  3. Click on the Upload file, New directory. In case of file upload change the default branch name in the corresponding input.
  4. To verify a delete file modal. Upload any file to the repo -> click on the uploaded file -> press the Delete button -> change the default branch name in the corresponding input.
Edited by Anton Kalmykov

Merge request reports

Loading