diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-08-23 01:16:57 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-08-23 01:19:28 +0300 |
commit | 46ed6cd8ca1a7292b62510d0c4aa13a91b4d4b2c (patch) | |
tree | 9f935d60dea38de324dfd584c796478a6c2480c1 /app/assets/javascripts/notes | |
parent | 0d08ba3dce8513e46f5be41b369b6aa4a12df31e (diff) |
IssueNotesRefactor: Fix eslint errors.
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r-- | app/assets/javascripts/notes/components/issue_note.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/assets/javascripts/notes/components/issue_note.vue b/app/assets/javascripts/notes/components/issue_note.vue index 2ed803fab96..659043d9fa1 100644 --- a/app/assets/javascripts/notes/components/issue_note.vue +++ b/app/assets/javascripts/notes/components/issue_note.vue @@ -86,16 +86,17 @@ this.updateNote(data) .then(() => { this.isEditing = false; - // TODO: this could be moved down, by setting a prop $(this.$refs.noteBody.$el).renderGFM(); this.$refs.noteBody.resetAutoSave(); + callback(); }) - .catch(() => Flash( + .catch(() => { + Flash( 'Something went wrong while editing your comment. Please try again.', 'alert', - $(parentElement), - )) - .then(callback); + $(parentElement)); + callback(); + }); }, formCancelHandler(shouldConfirm, isDirty) { if (shouldConfirm && isDirty) { |