Commit a25bd59c authored by Kushal Pandya's avatar Kushal Pandya

Use custom class to select Epic page wrapper

parent 0060d875
......@@ -5,7 +5,7 @@ import initRelatedItemsTree from 'ee/related_items_tree/related_items_tree_bundl
export default class EpicTabs {
constructor() {
this.epicTreesEnabled = gon.features && gon.features.epicTrees;
this.wrapper = document.querySelector('.content-wrapper .container-fluid:not(.breadcrumbs)');
this.wrapper = document.querySelector('.js-epic-container:not(.breadcrumbs)');
this.epicTabs = this.wrapper.querySelector('.js-epic-tabs-container');
this.discussionFilterContainer = this.epicTabs.querySelector('.js-discussion-filter-container');
const allowSubEpics = parseBoolean(this.epicTabs.dataset.allowSubEpics);
......
- @no_breadcrumb_container = false
- @no_container = false
- @content_class = "limit-container-width" unless fluid_layout
- @content_class = "js-epic-container #{'limit-container-width' unless fluid_layout}"
- epic_reference = @epic.to_reference
- sub_epics_feature_available = @group.feature_available?(:subepics)
......
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