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
b12b7802
Commit
b12b7802
authored
Aug 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
5f8b64af
ca622a3e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
2 deletions
+16
-2
app/assets/javascripts/diffs/components/diff_file_header.vue
app/assets/javascripts/diffs/components/diff_file_header.vue
+1
-1
app/assets/javascripts/vue_shared/components/recaptcha_modal.vue
...ets/javascripts/vue_shared/components/recaptcha_modal.vue
+7
-0
changelogs/unreleased/59786-show-renamed-file-in-mr.yml
changelogs/unreleased/59786-show-renamed-file-in-mr.yml
+5
-0
spec/javascripts/diffs/components/diff_file_header_spec.js
spec/javascripts/diffs/components/diff_file_header_spec.js
+1
-1
spec/javascripts/issue_show/components/description_spec.js
spec/javascripts/issue_show/components/description_spec.js
+2
-0
No files found.
app/assets/javascripts/diffs/components/diff_file_header.vue
View file @
b12b7802
...
...
@@ -130,7 +130,7 @@ export default {
return
`\`
${
this
.
diffFile
.
file_path
}
\``
;
},
isFileRenamed
()
{
return
this
.
diffFile
.
viewer
.
name
===
diffViewerModes
.
renamed
;
return
this
.
diffFile
.
renamed_file
;
},
isModeChanged
()
{
return
this
.
diffFile
.
viewer
.
name
===
diffViewerModes
.
mode_changed
;
...
...
app/assets/javascripts/vue_shared/components/recaptcha_modal.vue
View file @
b12b7802
...
...
@@ -30,9 +30,16 @@ export default {
},
mounted
()
{
if
(
window
.
recaptchaDialogCallback
)
{
throw
new
Error
(
'
recaptchaDialogCallback is already defined!
'
);
}
window
.
recaptchaDialogCallback
=
this
.
submit
.
bind
(
this
);
},
beforeDestroy
()
{
window
.
recaptchaDialogCallback
=
null
;
},
methods
:
{
appendRecaptchaScript
()
{
this
.
removeRecaptchaScript
();
...
...
changelogs/unreleased/59786-show-renamed-file-in-mr.yml
0 → 100644
View file @
b12b7802
---
title
:
Fix to show renamed file in mr
merge_request
:
31888
author
:
type
:
changed
spec/javascripts/diffs/components/diff_file_header_spec.js
View file @
b12b7802
...
...
@@ -372,7 +372,7 @@ describe('diff_file_header', () => {
});
it
(
'
displays old and new path if the file was renamed
'
,
()
=>
{
props
.
diffFile
.
viewer
.
name
=
diffViewerModes
.
renamed
;
props
.
diffFile
.
renamed_file
=
true
;
vm
=
mountComponentWithStore
(
Component
,
{
props
,
store
});
...
...
spec/javascripts/issue_show/components/description_spec.js
View file @
b12b7802
import
$
from
'
jquery
'
;
import
Vue
from
'
vue
'
;
import
'
~/behaviors/markdown/render_gfm
'
;
import
Description
from
'
~/issue_show/components/description.vue
'
;
import
mountComponent
from
'
spec/helpers/vue_mount_component_helper
'
;
...
...
@@ -91,6 +92,7 @@ describe('Description component', () => {
let
TaskList
;
beforeEach
(()
=>
{
vm
.
$destroy
();
vm
=
mountComponent
(
DescriptionComponent
,
Object
.
assign
({},
props
,
{
...
...
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