Skip to content
Snippets Groups Projects
Commit 172ef22b authored by Constance Okoghenun's avatar Constance Okoghenun
Browse files

Cancel button for diff notes

Added "cancel" comment button for inline diff notes for commits
parent 64fcda29
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -982,6 +982,10 @@ export default class Notes {
// DiffNote
form.find('#note_position').val(dataHolder.attr('data-position'));
 
form
.find('.js-close-discussion-note-form')
.show()
.removeClass('hide');
form.find('.js-note-target-close').remove();
form.find('.js-note-new-discussion').remove();
this.setupNoteForm(form);
Loading
Loading
Loading
Loading
@@ -39,3 +39,6 @@
= render partial: 'shared/notes/comment_button'
 
= yield(:note_actions)
%a.btn.btn-cancel.js-close-discussion-note-form.hide{ role: "button", data: {cancel_text: "Cancel" } }
Cancel
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment