Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/registry/repositories_controller.rb')
-rw-r--r--app/controllers/projects/registry/repositories_controller.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb
index 5e933b3b51f..b31a74540e2 100644
--- a/app/controllers/projects/registry/repositories_controller.rb
+++ b/app/controllers/projects/registry/repositories_controller.rb
@@ -14,13 +14,23 @@ module Projects
track_event(:list_repositories)
- render json: ContainerRepositoriesSerializer
+ serializer = ContainerRepositoriesSerializer
.new(project: project, current_user: current_user)
- .represent(@images)
+
+ if Feature.enabled?(:vue_container_registry_explorer)
+ render json: serializer.with_pagination(request, response).represent(@images)
+ else
+ render json: serializer.represent(@images)
+ end
end
end
end
+ # The show action renders index to allow frontend routing to work on page refresh
+ def show
+ render :index
+ end
+
def destroy
DeleteContainerRepositoryWorker.perform_async(current_user.id, image.id)
track_event(:delete_repository)