Skip to content
Snippets Groups Projects

Users can apply multiple suggestions at once.

Merged Jesse Hall requested to merge jessehall3/gitlab-ee:25486-batch-suggestions into master
10 files
+ 53
54
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -78,8 +78,8 @@ export default {
...mapActions([
'submitSuggestion',
'submitSuggestionBatch',
'pushSuggestionToBatch',
'popSuggestionFromBatch',
'addSuggestionInfoToBatch',
'removeSuggestionInfoFromBatch',
]),
renderGFM() {
$(this.$refs['note-body']).renderGFM();
@@ -103,10 +103,10 @@ export default {
addSuggestionToBatch(suggestionId) {
const { discussion_id: discussionId, id: noteId } = this.note;
this.pushSuggestionToBatch({ suggestionId, discussionId, noteId });
this.addSuggestionInfoToBatch({ suggestionId, discussionId, noteId });
},
removeSuggestionFromBatch(suggestionId) {
this.popSuggestionFromBatch(suggestionId);
this.removeSuggestionInfoFromBatch(suggestionId);
},
},
};
Loading