gitlab-org--gitlab-foss/app/assets/javascripts/diffs/mixins/draft_comments.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
419 B
JavaScript
Raw Normal View History

import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters('batchComments', [
'shouldRenderDraftRow',
'shouldRenderParallelDraftRow',
'draftsForLine',
'draftsForFile',
'hasParallelDraftLeft',
'hasParallelDraftRight',
]),
2019-04-12 05:27:24 -04:00
imageDiscussions() {
return this.diffFile.discussions.concat(this.draftsForFile(this.diffFile.file_hash));
2019-04-12 05:27:24 -04:00
},
},
};