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
1d5a3065
Commit
1d5a3065
authored
Aug 07, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve eslint violations
parent
7572aaf3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/repo/helpers/repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+3
-3
spec/javascripts/repo/components/repo_sidebar_spec.js
spec/javascripts/repo/components/repo_sidebar_spec.js
+1
-1
No files found.
app/assets/javascripts/repo/helpers/repo_helper.js
View file @
1d5a3065
...
...
@@ -216,7 +216,7 @@ const RepoHelper = {
serializeRepoEntity
(
type
,
entity
)
{
const
{
url
,
name
,
icon
,
last_commit
}
=
entity
;
le
t
returnObj
=
{
cons
t
returnObj
=
{
type
,
name
,
url
,
...
...
@@ -225,7 +225,7 @@ const RepoHelper = {
loading
:
false
,
};
if
(
entity
.
last_commit
)
{
if
(
entity
.
last_commit
)
{
returnObj
.
lastCommitUrl
=
`
${
Store
.
projectUrl
}
/commit/
${
last_commit
.
id
}
`
;
}
else
{
returnObj
.
lastCommitUrl
=
''
;
...
...
@@ -289,7 +289,7 @@ const RepoHelper = {
return
Store
.
openedFiles
.
find
(
openedFile
=>
Store
.
activeFile
.
url
===
openedFile
.
url
);
},
loadingError
(
e
)
{
loadingError
()
{
Flash
(
'
Unable to load the file at this time.
'
);
},
};
...
...
spec/javascripts/repo/components/repo_sidebar_spec.js
View file @
1d5a3065
...
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
RepoStore
from
'
~/repo/stores/repo_store
'
;
import
repoSidebar
from
'
~/repo/components/repo_sidebar.vue
'
;
f
describe
(
'
RepoSidebar
'
,
()
=>
{
describe
(
'
RepoSidebar
'
,
()
=>
{
function
createComponent
()
{
const
RepoSidebar
=
Vue
.
extend
(
repoSidebar
);
...
...
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