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
Léo-Paul Géneau
gitlab-ce
Commits
33cfeea1
Commit
33cfeea1
authored
Jan 07, 2019
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dryed code in commit_item by adding another computed prop
parent
30038a40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
app/assets/javascripts/diffs/components/commit_item.vue
app/assets/javascripts/diffs/components/commit_item.vue
+8
-9
No files found.
app/assets/javascripts/diffs/components/commit_item.vue
View file @
33cfeea1
...
...
@@ -36,24 +36,23 @@ export default {
},
},
computed
:
{
author
()
{
return
this
.
commit
.
author
||
{};
},
authorName
()
{
return
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
name
)
||
this
.
commit
.
author_name
;
return
this
.
author
.
name
||
this
.
commit
.
author_name
;
},
authorClass
()
{
return
this
.
commit
.
author
&&
this
.
commit
.
author
.
name
?
'
js-user-link
'
:
''
;
return
this
.
author
.
name
?
'
js-user-link
'
:
''
;
},
authorId
()
{
return
this
.
commit
.
author
&&
this
.
commit
.
author
.
name
?
this
.
commit
.
author
.
id
:
''
;
return
this
.
author
.
id
?
this
.
author
.
id
:
''
;
},
authorUrl
()
{
return
(
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
web_url
)
||
`mailto:
${
this
.
commit
.
author_email
}
`
);
return
this
.
author
.
web_url
||
`mailto:
${
this
.
commit
.
author_email
}
`
;
},
authorAvatar
()
{
return
(
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
avatar_url
)
||
this
.
commit
.
author_gravatar_url
);
return
this
.
author
.
avatar_url
||
this
.
commit
.
author_gravatar_url
;
},
},
created
()
{
...
...
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