Change fork suggestion to modal
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
How to set up and validate locally
- Visit a project you don´t have edition rights on.
- Open any file
- Click the
Edit
orEdit in web IDE
orDelete
orReplace
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #371166