Refactor project delete modal
What does this MR do and why?
Related to #573101
Refactors the project delete modal to simplify the set up. Previously we had multiple delete button components and the footer was being added with a slot. This MR moves the footer into the main modal component and consolidates the multiple delete button components into one.
Note: there is a bug with the stats that will be fixed in !211123
Screenshots or screen recordings
No visual changes
List view (Your work -> Projects)
Delayed deletion
| Before | After |
|---|---|
|
|
Immediate deletion
| Before | After |
|---|---|
|
|
Settings -> General -> Advanced
Delayed deletion
| Before | After |
|---|---|
|
|
Immediate deletion
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Go to Your work -> Projects
- Delete a project
- It should show the date that the project can be restored until
- Go to a project -> Settings -> General -> Advanced
- Delete the project
- It should show the date that the project can be restored until
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Peter Hegman







