Improve modal copy when deleting either the last or package files
Problem
When the user deletes all package files from a package, the modal copy is not very clear:
It may not be obvious to the user that deleting all files would delete the package.
Solution
Update the body copy of the modal
When the user deletes all files via a bulk delete action | When the user deletes the last file via individual delete action |
---|---|
Deleting the last package asset will remove version 0.0.0 of package name
|
Deleting all package assets will remove version 0.0.0 of package name
|
Update confirmation button of modal
Before | After |
---|---|
Delete | Permanently delete |
Implementation guide
- Set text of modal based on condition https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/packages_and_registries/package_registry/pages/details.vue#L234
Edited by Rahul Chanila