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
f85d2c7d
Commit
f85d2c7d
authored
Feb 17, 2020
by
Jacopo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace underscore with lodash for ./app/assets/javascripts/deploy_keys
parent
59344b22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
app/assets/javascripts/deploy_keys/components/key.vue
app/assets/javascripts/deploy_keys/components/key.vue
+4
-5
changelogs/unreleased/196688-replace-underscore-with-lodash-for-app-assets-javascripts-deploy_k.yml
...score-with-lodash-for-app-assets-javascripts-deploy_k.yml
+5
-0
No files found.
app/assets/javascripts/deploy_keys/components/key.vue
View file @
f85d2c7d
<
script
>
import
_
from
'
underscore
'
;
import
{
head
,
tail
}
from
'
lodash
'
;
import
{
s__
,
sprintf
}
from
'
~/locale
'
;
import
icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
...
...
@@ -48,8 +48,7 @@ export default {
const
projects
=
[...
this
.
deployKey
.
deploy_keys_projects
];
if
(
this
.
projectId
!==
null
)
{
const
indexOfCurrentProject
=
_
.
findIndex
(
projects
,
const
indexOfCurrentProject
=
projects
.
findIndex
(
project
=>
project
&&
project
.
project
&&
...
...
@@ -66,10 +65,10 @@ export default {
return
projects
;
},
firstProject
()
{
return
_
.
head
(
this
.
projects
);
return
head
(
this
.
projects
);
},
restProjects
()
{
return
_
.
tail
(
this
.
projects
);
return
tail
(
this
.
projects
);
},
restProjectsTooltip
()
{
return
sprintf
(
s__
(
'
DeployKeys|Expand %{count} other projects
'
),
{
...
...
changelogs/unreleased/196688-replace-underscore-with-lodash-for-app-assets-javascripts-deploy_k.yml
0 → 100644
View file @
f85d2c7d
---
title
:
Replace underscore with lodash for ./app/assets/javascripts/deploy_keys
merge_request
:
24965
author
:
Jacopo Beschi @jacopo-beschi
type
:
changed
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