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
868dcfd1
Commit
868dcfd1
authored
Aug 07, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eslint violations
parent
5920c183
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/repo/helpers/repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+3
-3
No files found.
app/assets/javascripts/repo/helpers/repo_helper.js
View file @
868dcfd1
...
@@ -154,7 +154,7 @@ const RepoHelper = {
...
@@ -154,7 +154,7 @@ const RepoHelper = {
RepoHelper
.
setBinaryDataAsBase64
(
data
);
RepoHelper
.
setBinaryDataAsBase64
(
data
);
Store
.
setViewToPreview
();
Store
.
setViewToPreview
();
}
else
if
(
!
Store
.
isPreviewView
())
{
}
else
if
(
!
Store
.
isPreviewView
())
{
if
(
!
data
.
render_error
)
{
if
(
!
data
.
render_error
)
{
Service
.
getRaw
(
data
.
raw_path
)
Service
.
getRaw
(
data
.
raw_path
)
.
then
((
rawResponse
)
=>
{
.
then
((
rawResponse
)
=>
{
Store
.
blobRaw
=
rawResponse
.
data
;
Store
.
blobRaw
=
rawResponse
.
data
;
...
@@ -164,7 +164,7 @@ const RepoHelper = {
...
@@ -164,7 +164,7 @@ const RepoHelper = {
}
}
}
}
if
(
Store
.
isPreviewView
()){
if
(
Store
.
isPreviewView
())
{
RepoHelper
.
setFile
(
data
,
file
);
RepoHelper
.
setFile
(
data
,
file
);
}
}
...
@@ -190,7 +190,7 @@ const RepoHelper = {
...
@@ -190,7 +190,7 @@ const RepoHelper = {
newFile
.
url
=
file
.
url
||
location
.
pathname
;
newFile
.
url
=
file
.
url
||
location
.
pathname
;
newFile
.
url
=
file
.
url
;
newFile
.
url
=
file
.
url
;
if
(
newFile
.
render_error
===
'
too_large
'
)
{
if
(
newFile
.
render_error
===
'
too_large
'
)
{
newFile
.
tooLarge
=
true
;
newFile
.
tooLarge
=
true
;
}
}
newFile
.
newContent
=
''
;
newFile
.
newContent
=
''
;
...
...
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