Welcome to mirror list, hosted at ThFree Co, Russian Federation.

draft_comments.js « mixins « diffs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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));
    },
  },
};