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
5ab2b0a7
Commit
5ab2b0a7
authored
Sep 19, 2019
by
Winnie Hellmann
Committed by
Clement Ho
Sep 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace _.findWhere() with _.find()
parent
777d1880
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue
...e_shared/components/project_selector/project_selector.vue
+1
-1
ee/app/assets/javascripts/projects/settings/access_dropdown.js
...p/assets/javascripts/projects/settings/access_dropdown.js
+1
-1
ee/app/assets/javascripts/protected_branches/protected_branch_edit.js
...s/javascripts/protected_branches/protected_branch_edit.js
+1
-1
ee/app/assets/javascripts/protected_environments/protected_environment_edit.js
...ipts/protected_environments/protected_environment_edit.js
+1
-1
ee/app/assets/javascripts/protected_tags/protected_tag_edit.js
...p/assets/javascripts/protected_tags/protected_tag_edit.js
+1
-1
ee/app/assets/javascripts/vue_shared/dashboards/store/actions.js
...assets/javascripts/vue_shared/dashboards/store/actions.js
+1
-1
No files found.
app/assets/javascripts/vue_shared/components/project_selector/project_selector.vue
View file @
5ab2b0a7
...
...
@@ -52,7 +52,7 @@ export default {
this
.
$emit
(
'
projectClicked
'
,
project
);
},
isSelected
(
project
)
{
return
Boolean
(
_
.
find
Where
(
this
.
selectedProjects
,
{
id
:
project
.
id
}));
return
Boolean
(
_
.
find
(
this
.
selectedProjects
,
{
id
:
project
.
id
}));
},
onInput
:
_
.
debounce
(
function
debouncedOnInput
()
{
this
.
$emit
(
'
searched
'
,
this
.
searchQuery
);
...
...
ee/app/assets/javascripts/projects/settings/access_dropdown.js
View file @
5ab2b0a7
...
...
@@ -445,7 +445,7 @@ export default class AccessDropdown {
break
;
}
const
isActive
=
_
.
find
Where
(
this
.
getSelectedItems
(),
criteria
)
?
'
is-active
'
:
''
;
const
isActive
=
_
.
find
(
this
.
getSelectedItems
(),
criteria
)
?
'
is-active
'
:
''
;
switch
(
item
.
type
)
{
case
LEVEL_TYPES
.
USER
:
...
...
ee/app/assets/javascripts/protected_branches/protected_branch_edit.js
View file @
5ab2b0a7
...
...
@@ -95,7 +95,7 @@ export default class ProtectedBranchEdit {
// Do this only for users for now
// get the current data for selected items
const
selectedItems
=
this
[
dropdownName
].
getSelectedItems
();
const
currentSelectedItem
=
_
.
find
Where
(
selectedItems
,
{
const
currentSelectedItem
=
_
.
find
(
selectedItems
,
{
user_id
:
currentItem
.
user_id
,
});
...
...
ee/app/assets/javascripts/protected_environments/protected_environment_edit.js
View file @
5ab2b0a7
...
...
@@ -80,7 +80,7 @@ export default class ProtectedEnvironmentEdit {
// Do this only for users for now
// get the current data for selected items
const
selectedItems
=
this
[
dropdownName
].
getSelectedItems
();
const
currentSelectedItem
=
_
.
find
Where
(
selectedItems
,
{
const
currentSelectedItem
=
_
.
find
(
selectedItems
,
{
user_id
:
currentItem
.
user_id
,
});
...
...
ee/app/assets/javascripts/protected_tags/protected_tag_edit.js
View file @
5ab2b0a7
...
...
@@ -78,7 +78,7 @@ export default class ProtectedTagEdit {
// Do this only for users for now
// get the current data for selected items
const
selectedItems
=
this
[
dropdownName
].
getSelectedItems
();
const
currentSelectedItem
=
_
.
find
Where
(
selectedItems
,
{
const
currentSelectedItem
=
_
.
find
(
selectedItems
,
{
user_id
:
currentItem
.
user_id
,
});
...
...
ee/app/assets/javascripts/vue_shared/dashboards/store/actions.js
View file @
5ab2b0a7
...
...
@@ -33,7 +33,7 @@ export const addProjectsToDashboard = ({ state, dispatch }) =>
.
catch
(()
=>
dispatch
(
'
receiveAddProjectsToDashboardError
'
));
export
const
toggleSelectedProject
=
({
commit
,
state
},
project
)
=>
{
if
(
!
_
.
find
Where
(
state
.
selectedProjects
,
{
id
:
project
.
id
}))
{
if
(
!
_
.
find
(
state
.
selectedProjects
,
{
id
:
project
.
id
}))
{
commit
(
types
.
ADD_SELECTED_PROJECT
,
project
);
}
else
{
commit
(
types
.
REMOVE_SELECTED_PROJECT
,
project
);
...
...
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