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
c8f687d3
Commit
c8f687d3
authored
Mar 27, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaces underscore with lodash
parent
05d3494b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/assets/javascripts/boards/mixins/issue_card_inner.js
ee/app/assets/javascripts/boards/mixins/issue_card_inner.js
+2
-2
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
+2
-2
No files found.
ee/app/assets/javascripts/boards/mixins/issue_card_inner.js
View file @
c8f687d3
import
_
from
'
underscore
'
;
import
{
isNumber
}
from
'
lodash
'
;
export
default
{
computed
:
{
validIssueWeight
()
{
if
(
this
.
issue
&&
_
.
isNumber
(
this
.
issue
.
weight
))
{
if
(
this
.
issue
&&
isNumber
(
this
.
issue
.
weight
))
{
return
this
.
issue
.
weight
>=
0
;
}
...
...
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
View file @
c8f687d3
/* eslint-disable class-methods-use-this */
import
_
from
'
underscore
'
;
import
{
sortBy
}
from
'
lodash
'
;
import
Cookies
from
'
js-cookie
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
sidebarEventHub
from
'
~/sidebar/event_hub
'
;
...
...
@@ -156,7 +156,7 @@ class BoardsStoreEE {
position
:
0
,
});
this
.
store
.
state
.
lists
=
_
.
sortBy
(
this
.
store
.
state
.
lists
,
'
position
'
);
this
.
store
.
state
.
lists
=
sortBy
(
this
.
store
.
state
.
lists
,
'
position
'
);
}
removePromotion
()
{
...
...
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