debian-mirror-gitlab/app/assets/javascripts/diffs/mixins/draft_comments.js

18 lines
418 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import { mapGetters } from 'vuex';
2019-07-07 11:18:12 +05:30
export default {
computed: {
2020-06-23 00:09:42 +05:30
...mapGetters('batchComments', [
'shouldRenderDraftRow',
'shouldRenderParallelDraftRow',
'draftForLine',
'draftsForFile',
'hasParallelDraftLeft',
'hasParallelDraftRight',
]),
2019-07-31 22:56:46 +05:30
imageDiscussions() {
2020-06-23 00:09:42 +05:30
return this.diffFile.discussions.concat(this.draftsForFile(this.diffFile.file_hash));
2019-07-31 22:56:46 +05:30
},
2019-07-07 11:18:12 +05:30
},
};