Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
7ef8d3644c8d
Commit
588556f0
authored
Mar 02, 2018
by
Kushal Pandya
Browse files
Add `isGroupDecendent` to init config
parent
40353e6f631d
Changes
3
Show whitespace changes
Inline
Side-by-side
app/assets/javascripts/filtered_search/filtered_search_dropdown_manager.js
View file @
7ef8d364
...
...
@@ -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
();
...
...
app/assets/javascripts/filtered_search/filtered_search_manager.js
View file @
7ef8d364
...
...
@@ -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
;
...
...
app/assets/javascripts/pages/search/init_filtered_search.js
View file @
7ef8d364
...
...
@@ -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
,
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment