debian-mirror-gitlab/app/assets/javascripts/diffs/mixins/draft_comments.js
2022-11-25 23:54:43 +05:30

17 lines
419 B
JavaScript

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