diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 21:08:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-06 21:08:48 +0000 |
commit | a89cb5cbdd832d4d9e80517973aceda6bc0a3856 (patch) | |
tree | 574475bd0901a2f8906d36a4728b8bbb95b41e1c /app/controllers/groups | |
parent | 0d6fa033121a9bef708b8f2de186c4034c61d4a3 (diff) | |
download | gitlab-ce-a89cb5cbdd832d4d9e80517973aceda6bc0a3856.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/groups')
-rw-r--r-- | app/controllers/groups/registry/repositories_controller.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/controllers/groups/registry/repositories_controller.rb b/app/controllers/groups/registry/repositories_controller.rb index a4ef33ecc6a..84c25cfb180 100644 --- a/app/controllers/groups/registry/repositories_controller.rb +++ b/app/controllers/groups/registry/repositories_controller.rb @@ -14,13 +14,24 @@ module Groups track_event(:list_repositories) - render json: ContainerRepositoriesSerializer + serializer = ContainerRepositoriesSerializer .new(current_user: current_user) - .represent_read_only(@images) + + if Feature.enabled?(:vue_container_registry_explorer) + render json: serializer.with_pagination(request, response) + .represent_read_only(@images) + else + render json: serializer.represent_read_only(@images) + end end end end + # The show action renders index to allow frontend routing to work on page refresh + def show + render :index + end + private def feature_flag_group_container_registry_browser! |