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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
4c9e68cb
Commit
4c9e68cb
authored
Apr 26, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change 'body' to 'data' after 'JSON.parse'
parent
edbf9880
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/assets/javascripts/issue_show/issue_title_description.vue
...assets/javascripts/issue_show/issue_title_description.vue
+8
-8
No files found.
app/assets/javascripts/issue_show/issue_title_description.vue
View file @
4c9e68cb
...
...
@@ -39,11 +39,11 @@ export default {
},
methods
:
{
renderResponse
(
res
)
{
const
body
=
JSON
.
parse
(
res
.
body
);
this
.
triggerAnimation
(
body
);
const
data
=
JSON
.
parse
(
res
.
body
);
this
.
triggerAnimation
(
data
);
},
updateTaskHTML
(
body
)
{
this
.
taskStatus
=
body
.
task_status
;
updateTaskHTML
(
data
)
{
this
.
taskStatus
=
data
.
task_status
;
document
.
querySelector
(
'
#task_status
'
).
innerText
=
this
.
taskStatus
;
},
elementsToVisualize
(
noTitleChange
,
noDescriptionChange
)
{
...
...
@@ -80,13 +80,13 @@ export default {
clearTimeout
(
this
.
timeoutId
);
},
0
);
},
triggerAnimation
(
body
)
{
triggerAnimation
(
data
)
{
// always reset to false before checking the change
this
.
descriptionChange
=
false
;
const
{
title
,
description
}
=
body
;
this
.
descriptionText
=
body
.
description_text
;
this
.
updateTaskHTML
(
body
);
const
{
title
,
description
}
=
data
;
this
.
descriptionText
=
data
.
description_text
;
this
.
updateTaskHTML
(
data
);
/**
* since opacity is changed, even if there is no diff for Vue to update
* we must check the title/description even on a 304 to ensure no visual change
...
...
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