Merge branch '40715-updateendpoint-undefined-on-issue-page' into 'master'
Resolve "updateEndpoint undefined on Issue page" Closes #40715 See merge request gitlab-org/gitlab-ce!15698
This commit is contained in:
commit
be8ca260da
2 changed files with 7 additions and 25 deletions
|
@ -5,7 +5,7 @@ import '../vue_shared/vue_resource_interceptor';
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const initialDataEl = document.getElementById('js-issuable-app-initial-data');
|
const initialDataEl = document.getElementById('js-issuable-app-initial-data');
|
||||||
const initialData = JSON.parse(initialDataEl.innerHTML.replace(/"/g, '"'));
|
const props = JSON.parse(initialDataEl.innerHTML.replace(/"/g, '"'));
|
||||||
|
|
||||||
$('.issuable-edit').on('click', (e) => {
|
$('.issuable-edit').on('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -18,32 +18,9 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
components: {
|
components: {
|
||||||
issuableApp,
|
issuableApp,
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
...initialData,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
render(createElement) {
|
render(createElement) {
|
||||||
return createElement('issuable-app', {
|
return createElement('issuable-app', {
|
||||||
props: {
|
props,
|
||||||
canUpdate: this.canUpdate,
|
|
||||||
canDestroy: this.canDestroy,
|
|
||||||
endpoint: this.endpoint,
|
|
||||||
issuableRef: this.issuableRef,
|
|
||||||
initialTitleHtml: this.initialTitleHtml,
|
|
||||||
initialTitleText: this.initialTitleText,
|
|
||||||
initialDescriptionHtml: this.initialDescriptionHtml,
|
|
||||||
initialDescriptionText: this.initialDescriptionText,
|
|
||||||
issuableTemplates: this.issuableTemplates,
|
|
||||||
markdownPreviewPath: this.markdownPreviewPath,
|
|
||||||
markdownDocsPath: this.markdownDocsPath,
|
|
||||||
projectPath: this.projectPath,
|
|
||||||
projectNamespace: this.projectNamespace,
|
|
||||||
updatedAt: this.updatedAt,
|
|
||||||
updatedByName: this.updatedByName,
|
|
||||||
updatedByPath: this.updatedByPath,
|
|
||||||
initialTaskStatus: this.initialTaskStatus,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Fix updateEndpoint undefined error for issue_show app root
|
||||||
|
merge_request: 15698
|
||||||
|
author:
|
||||||
|
type: fixed
|
Loading…
Reference in a new issue