Commit b12b7802 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 5f8b64af ca622a3e
......@@ -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;
......
......@@ -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();
......
---
title: Fix to show renamed file in mr
merge_request: 31888
author:
type: changed
......@@ -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 });
......
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, {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment