Commit d6abee51 authored by Clement Ho's avatar Clement Ho

Merge branch 'winh-cleanup-comment-submit-test' into 'master'

Cleanup test for disabling comment submit button

See merge request gitlab-org/gitlab-ce!17930
parents 8cdd3a6b 64572b53
......@@ -1809,9 +1809,11 @@ export default class Notes {
}
}
$closeBtn.text($closeBtn.data('originalText'));
/* eslint-disable promise/catch-or-return */
// Make request to submit comment on server
axios
return axios
.post(`${formAction}?html=true`, formData)
.then(res => {
const note = res.data;
......@@ -1928,8 +1930,6 @@ export default class Notes {
this.reenableTargetFormSubmitButton(e);
this.addNoteError($form);
});
return $closeBtn.text($closeBtn.data('originalText'));
}
/**
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment