diff --git a/app/assets/javascripts/notes/components/issue_note_actions.vue b/app/assets/javascripts/notes/components/issue_note_actions.vue index 88f0fdb9a25..c733f2c8dfa 100644 --- a/app/assets/javascripts/notes/components/issue_note_actions.vue +++ b/app/assets/javascripts/notes/components/issue_note_actions.vue @@ -111,7 +111,7 @@ export default { + class="btn btn-transparent js-note-edit"> Edit comment @@ -126,7 +126,7 @@ export default { Delete comment diff --git a/app/assets/javascripts/notes/components/issue_note_body.vue b/app/assets/javascripts/notes/components/issue_note_body.vue index ee9318cbd6a..fd4040452bf 100644 --- a/app/assets/javascripts/notes/components/issue_note_body.vue +++ b/app/assets/javascripts/notes/components/issue_note_body.vue @@ -28,6 +28,11 @@ export default { required: true, }, }, + computed: { + noteBody() { + return this.note.note; + }, + }, components: { IssueNoteEditedText, IssueNoteAwardsList, @@ -75,7 +80,8 @@ export default { ref="noteForm" :updateHandler="handleFormUpdate" :cancelHandler="formCancelHandler" - :noteBody="note.note" /> + :noteBody="noteBody" + :noteId="note.id" /> + + This comment has changed since you started editing, please review the + updated comment + to ensure information is not lost. + Cancel