summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diffs/mixins/draft_comments.js
blob: 693b4a8469441c786318234aefbdb82db1f575da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { mapGetters } from 'vuex';

export default {
  computed: {
    ...mapGetters('batchComments', [
      'shouldRenderDraftRow',
      'shouldRenderParallelDraftRow',
      'draftForLine',
      'draftsForFile',
      'hasParallelDraftLeft',
      'hasParallelDraftRight',
    ]),
    imageDiscussions() {
      return this.diffFile.discussions.concat(this.draftsForFile(this.diffFile.file_hash));
    },
  },
};