diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 21:10:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-20 21:10:31 +0000 |
commit | 83fcbb041750ca86b52e09a22b224c44bd691be7 (patch) | |
tree | 94a38b6e9eaf6428afd290d882ea3f25f54a6cf3 /app/helpers/sidebars_helper.rb | |
parent | 1cb90c3b4f04d42fa30f7903b10b32721c5fadac (diff) | |
download | gitlab-ce-83fcbb041750ca86b52e09a22b224c44bd691be7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/sidebars_helper.rb')
-rw-r--r-- | app/helpers/sidebars_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/sidebars_helper.rb b/app/helpers/sidebars_helper.rb index 0fc306a3f2e..39ad8ed8a0f 100644 --- a/app/helpers/sidebars_helper.rb +++ b/app/helpers/sidebars_helper.rb @@ -20,6 +20,14 @@ module SidebarsHelper Sidebars::Projects::Context.new(**context_data) end + def sidebar_refactor_enabled? + Feature.enabled?(:sidebar_refactor, current_user, default_enabled: :yaml) + end + + def sidebar_refactor_disabled? + !sidebar_refactor_enabled? + end + private def sidebar_project_tracking_attrs |