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
5 files
+ 48
5
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -75,7 +75,7 @@ export default {
}
},
methods: {
...mapActions(['submitSuggestion', 'pushSuggestionToBatch', 'popSuggestionFromBatch']),
...mapActions(['submitSuggestion', 'submitSuggestionBatch', 'pushSuggestionToBatch', 'popSuggestionFromBatch']),
renderGFM() {
$(this.$refs['note-body']).renderGFM();
},
@@ -92,6 +92,9 @@ export default {
callback,
);
},
applySuggestionBatch({ flashContainer }) {
return this.submitSuggestionBatch({ flashContainer })
},
addSuggestionToBatch(suggestionId) {
const { discussion_id: discussionId, id: noteId } = this.note;
@@ -114,6 +117,7 @@ export default {
:line-type="lineType"
:help-page-path="helpPagePath"
@apply="applySuggestion"
@applyBatch="applySuggestionBatch"
@addToBatch="addSuggestionToBatch"
@removeFromBatch="removeSuggestionFromBatch"
/>
Loading