diff options
Diffstat (limited to 'app/controllers/groups/registry/repositories_controller.rb')
-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! |