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
f6e182cb
Commit
f6e182cb
authored
Nov 06, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo [ci skip]
parent
876d90a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
...javascripts/vue_merge_request_widget/mr_widget_options.js
+4
-2
No files found.
ee/app/assets/javascripts/vue_merge_request_widget/mr_widget_options.js
View file @
f6e182cb
...
...
@@ -69,8 +69,7 @@ export default {
securityText
()
{
const
{
securityReport
}
=
this
.
mr
;
if
(
securityReport
.
length
)
{
const
vulnerabilitiesText
=
gl
.
text
.
pluralize
(
'
vulnerabilities
'
,
securityReport
.
length
);
return
`
${
securityReport
.
length
}
security
${
vulnerabilitiesText
}
detected`
;
return
`
${
securityReport
.
length
}
security
${
this
.
pluralizeVulnerability
(
securityReport
.
length
)}
detected`
;
}
return
'
No security vulnerabilities detected
'
;
...
...
@@ -93,6 +92,9 @@ export default {
},
},
methods
:
{
pluralizeVulnerability
(
length
)
{
return
length
===
1
?
'
vulnerability
'
:
'
vulnerabilities
'
;
},
fetchCodeQuality
()
{
const
{
head_path
,
base_path
}
=
this
.
mr
.
codeclimate
;
...
...
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