Skip to content

Change fork suggestion to modal

LAURENT Jules requested to merge julesaaelio/gitlab:371166-fork-modal into master

What does this MR do and why?

When trying to edit a file online, when user doesn't have permissions to edit the code we display a modal instead of the existing banner. See #371166

Screenshots or screen recordings

Peek_2022-09-28_00-16

How to set up and validate locally

  1. Visit a project you don´t have edition rights on.
  2. Open any file
  3. Click the Edit or Edit in web IDE or Delete or Replace button

=> You should see the modal offering to create a fork When clicking Cancel : the modal is dismissed. When clicking Fork , a fork is created and the original action is executed on the fork.

MR acceptance checklist

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

Related to #371166

Merge request reports