Commit 64572b53 authored by Winnie Hellmann's avatar Winnie Hellmann

Cleanup test for disabling comment submit button

parent 9b4b79ff
...@@ -1809,9 +1809,11 @@ export default class Notes { ...@@ -1809,9 +1809,11 @@ export default class Notes {
} }
} }
$closeBtn.text($closeBtn.data('originalText'));
/* eslint-disable promise/catch-or-return */ /* eslint-disable promise/catch-or-return */
// Make request to submit comment on server // Make request to submit comment on server
axios return axios
.post(`${formAction}?html=true`, formData) .post(`${formAction}?html=true`, formData)
.then(res => { .then(res => {
const note = res.data; const note = res.data;
...@@ -1928,8 +1930,6 @@ export default class Notes { ...@@ -1928,8 +1930,6 @@ export default class Notes {
this.reenableTargetFormSubmitButton(e); this.reenableTargetFormSubmitButton(e);
this.addNoteError($form); 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