blob: 5ca9ade668ccfc59dbd20e6c8ecee273ea45ba13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { mapGetters } from 'vuex';
import { IMAGE_DIFF_POSITION_TYPE } from '../constants';
export default {
computed: {
...mapGetters('batchComments', [
'shouldRenderDraftRow',
'shouldRenderParallelDraftRow',
'draftsForLine',
'draftsForFile',
'hasParallelDraftLeft',
'hasParallelDraftRight',
]),
imageDiscussionsWithDrafts() {
return this.diffFile.discussions
.filter((f) => f.position?.position_type === IMAGE_DIFF_POSITION_TYPE)
.concat(this.draftsForFile(this.diffFile.file_hash));
},
},
};
|