Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
29d2261b
Commit
29d2261b
authored
Nov 25, 2019
by
Adam Hegyi
Committed by
Martin Wortschack
Nov 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix group search in groups dropdown
parent
69fb15b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/assets/javascripts/frequent_items/store/mutations.js
app/assets/javascripts/frequent_items/store/mutations.js
+1
-1
changelogs/unreleased/fix-groups-search-dropdown.yml
changelogs/unreleased/fix-groups-search-dropdown.yml
+5
-0
spec/javascripts/frequent_items/mock_data.js
spec/javascripts/frequent_items/mock_data.js
+1
-1
No files found.
app/assets/javascripts/frequent_items/store/mutations.js
View file @
29d2261b
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
});
});
},
},
[
types
.
RECEIVE_SEARCHED_ITEMS_SUCCESS
](
state
,
results
)
{
[
types
.
RECEIVE_SEARCHED_ITEMS_SUCCESS
](
state
,
results
)
{
const
rawItems
=
results
.
data
;
const
rawItems
=
results
.
data
?
results
.
data
:
results
;
// Api.groups returns array, Api.projects returns object
Object
.
assign
(
state
,
{
Object
.
assign
(
state
,
{
items
:
rawItems
.
map
(
rawItem
=>
({
items
:
rawItems
.
map
(
rawItem
=>
({
id
:
rawItem
.
id
,
id
:
rawItem
.
id
,
...
...
changelogs/unreleased/fix-groups-search-dropdown.yml
0 → 100644
View file @
29d2261b
---
title
:
Fix group search in groups dropdown
merge_request
:
20535
author
:
type
:
fixed
spec/javascripts/frequent_items/mock_data.js
View file @
29d2261b
...
@@ -68,7 +68,7 @@ export const mockFrequentGroups = [
...
@@ -68,7 +68,7 @@ export const mockFrequentGroups = [
},
},
];
];
export
const
mockSearchedGroups
=
{
data
:
[
mockRawGroup
]
}
;
export
const
mockSearchedGroups
=
[
mockRawGroup
]
;
export
const
mockProcessedSearchedGroups
=
[
mockGroup
];
export
const
mockProcessedSearchedGroups
=
[
mockGroup
];
export
const
mockProject
=
{
export
const
mockProject
=
{
...
...
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