Only show the link to the project homepage when viewing package from group package registry
Context
On a customer call, a customer shared their screen with me and was asking why there is a link to the project home page on the package detail view.
When this link shows
- This link only shows when the package is published via a pipeline
- This link shows when viewing the project's package registry
- This link shows when viewing the group's package registry
Proposal
It is superfluous to show this link when viewing the project's package registry. I propose to only show this link when looking at the group's package registry
Implementation plan
- Update
v-if
condition https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/packages_and_registries/package_registry/components/details/package_title.vue#L111 to considerisGroupPage
(which can beinject
ed) before rendering template
Edited by Rahul Chanila