Commit 40eb82f1 authored by Brett Walker's avatar Brett Walker

Scope the :epics_tree feature flag to a group

parent 2084bda2
......@@ -15,7 +15,7 @@ class Groups::EpicsController < Groups::ApplicationController
before_action :authorize_create_epic!, only: [:create]
before_action do
push_frontend_feature_flag(:epic_trees)
push_frontend_feature_flag(:epic_trees, @group)
end
def index
......
......@@ -23,7 +23,7 @@
%a#discussion-tab.active{ href: '#discussion', data: { toggle: 'tab' } }
= _('Discussion')
%span.badge.badge-pill= @epic.notes.user.count
- if Feature.enabled?(:epic_trees)
- if Feature.enabled?(:epic_trees, @group)
%li.tree-tab
%a#tree-tab{ href: '#tree', data: { toggle: 'tab' } }
= _('Tree')
......@@ -41,7 +41,7 @@
%script.js-notes-data{ type: "application/json" }= initial_notes_data(true).to_json.html_safe
.issuable-discussion
= render 'discussion'
- if Feature.enabled?(:epic_trees)
- if Feature.enabled?(:epic_trees, @group)
#tree.tab-pane
.row
%section.col-md-12
......
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