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
1362267d
Commit
1362267d
authored
6 years ago
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix data coming down to error handler of tasklist
parent
83306d24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/issue_show/components/description.vue
app/assets/javascripts/issue_show/components/description.vue
+2
-1
app/assets/javascripts/task_list.js
app/assets/javascripts/task_list.js
+2
-2
No files found.
app/assets/javascripts/issue_show/components/description.vue
View file @
1362267d
<
script
>
import
$
from
'
jquery
'
;
import
createFlash
from
'
~/flash
'
;
import
animateMixin
from
'
../mixins/animate
'
;
import
TaskList
from
'
../../task_list
'
;
import
recaptchaModalImplementor
from
'
../../vue_shared/mixins/recaptcha_modal_implementor
'
;
...
...
@@ -89,7 +90,7 @@ export default {
},
taskListUpdateError
(
data
)
{
// stub for error handling
createFlash
(
data
.
errors
[
0
]);
},
updateTaskStatusText
()
{
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/task_list.js
View file @
1362267d
...
...
@@ -44,12 +44,12 @@ export default class TaskList {
const
patchData
=
{};
patchData
[
this
.
dataType
]
=
{
[
this
.
fieldName
]:
$target
.
val
(),
[
'
lock_version
'
]
:
this
.
lockVersion
,
lock_version
:
this
.
lockVersion
,
};
return
axios
.
patch
(
$target
.
data
(
'
updateUrl
'
)
||
$
(
'
form.js-issuable-update
'
).
attr
(
'
action
'
),
patchData
)
.
then
(({
data
})
=>
this
.
onSuccess
(
data
))
.
catch
(
err
=>
this
.
onError
(
err
));
.
catch
(
({
response
})
=>
this
.
onError
(
response
.
data
));
}
}
This diff is collapsed.
Click to expand it.
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