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
baddf01e
Commit
baddf01e
authored
Apr 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f4a7765f
a374d690
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
app/assets/javascripts/diffs/components/diff_file.vue
app/assets/javascripts/diffs/components/diff_file.vue
+0
-4
changelogs/unreleased/fixed-duplicated-large-text-on-diffs.yml
...elogs/unreleased/fixed-duplicated-large-text-on-diffs.yml
+5
-0
spec/javascripts/diffs/components/diff_file_spec.js
spec/javascripts/diffs/components/diff_file_spec.js
+3
-5
No files found.
app/assets/javascripts/diffs/components/diff_file.vue
View file @
baddf01e
...
...
@@ -188,10 +188,6 @@ export default {
/>
</div>
</
template
>
<div
v-if=
"isFileTooLarge"
class=
"nothing-here-block diff-collapsed js-too-large-diff"
>
{{ __('This source diff could not be displayed because it is too large.') }}
<span
v-html=
"viewBlobLink"
></span>
</div>
</div>
</template>
...
...
changelogs/unreleased/fixed-duplicated-large-text-on-diffs.yml
0 → 100644
View file @
baddf01e
---
title
:
Fixed duplicated diff too large error message
merge_request
:
author
:
type
:
fixed
spec/javascripts/diffs/components/diff_file_spec.js
View file @
baddf01e
...
...
@@ -141,18 +141,16 @@ describe('DiffFile', () => {
it
(
'
should have too large warning and blob link
'
,
done
=>
{
const
BLOB_LINK
=
'
/file/view/path
'
;
vm
.
file
.
viewer
.
error
=
diffViewerErrors
.
too_large
;
vm
.
file
.
viewer
.
error_message
=
'
This source diff could not be displayed because it is too large
'
;
vm
.
file
.
view_path
=
BLOB_LINK
;
vm
.
file
.
renderIt
=
true
;
vm
.
$nextTick
(()
=>
{
expect
(
vm
.
$el
.
innerText
).
toContain
(
'
This source diff could not be displayed because it is too large
'
,
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-too-large-diff
'
)).
toBeDefined
();
expect
(
vm
.
$el
.
querySelector
(
'
.js-too-large-diff a
'
).
href
.
indexOf
(
BLOB_LINK
),
).
toBeGreaterThan
(
-
1
);
done
();
});
});
...
...
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