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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
0e6d3c14
Commit
0e6d3c14
authored
Jan 06, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove parenthesis around returned objects in pipelines.js.es6
parent
7eca523e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
+3
-3
No files found.
app/assets/javascripts/vue_pipelines_index/pipelines.js.es6
View file @
0e6d3c14
...
@@ -44,15 +44,15 @@
...
@@ -44,15 +44,15 @@
author(pipeline) {
author(pipeline) {
if (!pipeline.commit) return ({ avatar_url: '', web_url: '', username: '' });
if (!pipeline.commit) return ({ avatar_url: '', web_url: '', username: '' });
if (pipeline.commit.author) return pipeline.commit.author;
if (pipeline.commit.author) return pipeline.commit.author;
return
(
{
return {
avatar_url: pipeline.commit.author_gravatar_url,
avatar_url: pipeline.commit.author_gravatar_url,
web_url: `mailto:${pipeline.commit.author_email}`,
web_url: `mailto:${pipeline.commit.author_email}`,
username: pipeline.commit.author_name,
username: pipeline.commit.author_name,
}
)
;
};
},
},
ref(pipeline) {
ref(pipeline) {
const { ref } = pipeline;
const { ref } = pipeline;
return
({ name: ref.name, tag: ref.tag, ref_url: ref.path })
;
return
{ name: ref.name, tag: ref.tag, ref_url: ref.path }
;
},
},
commitTitle(pipeline) {
commitTitle(pipeline) {
return pipeline.commit ? pipeline.commit.title : '';
return pipeline.commit ? pipeline.commit.title : '';
...
...
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