BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+3
-3
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