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
1c42ea52
Commit
1c42ea52
authored
Dec 07, 2017
by
Luke Bennett
Committed by
Clement Ho
Dec 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "updateEndpoint undefined on Issue page"
parent
bd44feea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
25 deletions
+7
-25
app/assets/javascripts/issue_show/index.js
app/assets/javascripts/issue_show/index.js
+2
-25
changelogs/unreleased/40715-updateendpoint-undefined-on-issue-page.yml
...released/40715-updateendpoint-undefined-on-issue-page.yml
+5
-0
No files found.
app/assets/javascripts/issue_show/index.js
View file @
1c42ea52
...
@@ -5,7 +5,7 @@ import '../vue_shared/vue_resource_interceptor';
...
@@ -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', () => {
...
@@ -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
,
},
});
});
},
},
});
});
...
...
changelogs/unreleased/40715-updateendpoint-undefined-on-issue-page.yml
0 → 100644
View file @
1c42ea52
---
title
:
Fix updateEndpoint undefined error for issue_show app root
merge_request
:
15698
author
:
type
:
fixed
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