BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
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 {
...
@@ -39,11 +39,11 @@ export default {
},
},
methods
:
{
methods
:
{
renderResponse
(
res
)
{
renderResponse
(
res
)
{
const
body
=
JSON
.
parse
(
res
.
body
);
const
data
=
JSON
.
parse
(
res
.
body
);
this
.
triggerAnimation
(
body
);
this
.
triggerAnimation
(
data
);
},
},
updateTaskHTML
(
body
)
{
updateTaskHTML
(
data
)
{
this
.
taskStatus
=
body
.
task_status
;
this
.
taskStatus
=
data
.
task_status
;
document
.
querySelector
(
'#task_status'
).
innerText
=
this
.
taskStatus
;
document
.
querySelector
(
'#task_status'
).
innerText
=
this
.
taskStatus
;
},
},
elementsToVisualize
(
noTitleChange
,
noDescriptionChange
)
{
elementsToVisualize
(
noTitleChange
,
noDescriptionChange
)
{
...
@@ -80,13 +80,13 @@ export default {
...
@@ -80,13 +80,13 @@ export default {
clearTimeout
(
this
.
timeoutId
);
clearTimeout
(
this
.
timeoutId
);
},
0
);
},
0
);
},
},
triggerAnimation
(
body
)
{
triggerAnimation
(
data
)
{
// always reset to false before checking the change
// always reset to false before checking the change
this
.
descriptionChange
=
false
;
this
.
descriptionChange
=
false
;
const
{
title
,
description
}
=
body
;
const
{
title
,
description
}
=
data
;
this
.
descriptionText
=
body
.
description_text
;
this
.
descriptionText
=
data
.
description_text
;
this
.
updateTaskHTML
(
body
);
this
.
updateTaskHTML
(
data
);
/**
/**
* since opacity is changed, even if there is no diff for Vue to update
* 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
* 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