Add isGroupDecendent
to init config
This commit is contained in:
parent
e4ec50b70b
commit
ca430d246d
3 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,7 @@ export default class FilteredSearchDropdownManager {
|
|||
page,
|
||||
isGroup,
|
||||
isGroupAncestor,
|
||||
isGroupDecendent,
|
||||
filteredSearchTokenKeys,
|
||||
}) {
|
||||
this.container = FilteredSearchContainer.container;
|
||||
|
@ -26,6 +27,7 @@ export default class FilteredSearchDropdownManager {
|
|||
this.page = page;
|
||||
this.groupsOnly = isGroup;
|
||||
this.groupAncestor = isGroupAncestor;
|
||||
this.isGroupDecendent = isGroupDecendent;
|
||||
|
||||
this.setupMapping();
|
||||
|
||||
|
|
|
@ -22,11 +22,13 @@ export default class FilteredSearchManager {
|
|||
page,
|
||||
isGroup = false,
|
||||
isGroupAncestor = false,
|
||||
isGroupDecendent = false,
|
||||
filteredSearchTokenKeys = FilteredSearchTokenKeys,
|
||||
stateFiltersSelector = '.issues-state-filters',
|
||||
}) {
|
||||
this.isGroup = isGroup;
|
||||
this.isGroupAncestor = isGroupAncestor;
|
||||
this.isGroupDecendent = isGroupDecendent;
|
||||
this.states = ['opened', 'closed', 'merged', 'all'];
|
||||
|
||||
this.page = page;
|
||||
|
|
|
@ -5,6 +5,7 @@ export default ({
|
|||
filteredSearchTokenKeys,
|
||||
isGroup,
|
||||
isGroupAncestor,
|
||||
isGroupDecendent,
|
||||
stateFiltersSelector,
|
||||
}) => {
|
||||
const filteredSearchEnabled = FilteredSearchManager && document.querySelector('.filtered-search');
|
||||
|
@ -13,6 +14,7 @@ export default ({
|
|||
page,
|
||||
isGroup,
|
||||
isGroupAncestor,
|
||||
isGroupDecendent,
|
||||
filteredSearchTokenKeys,
|
||||
stateFiltersSelector,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue