Commit d93adbcb authored by Stan Hu's avatar Stan Hu

Add LFS badge feature flag to RefsController#logs_tree

https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23071 added the
`vue_file_list_lfs_badge` feature flag, but that merge request only
exported it for `TreeController#show`. This flag also needs to be
exported for the `RefsController#logs_tree` action, which is usually
used to query the directory listing.

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/215786
parent 191b9600
...@@ -11,6 +11,10 @@ class Projects::RefsController < Projects::ApplicationController ...@@ -11,6 +11,10 @@ class Projects::RefsController < Projects::ApplicationController
before_action :assign_ref_vars before_action :assign_ref_vars
before_action :authorize_download_code! before_action :authorize_download_code!
before_action only: [:logs_tree] do
push_frontend_feature_flag(:vue_file_list_lfs_badge)
end
def switch def switch
respond_to do |format| respond_to do |format|
format.html do format.html do
......
---
title: Add LFS badge feature flag to RefsController#logs_tree
merge_request: 30442
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment