2020-06-01 02:08:21 -04:00
|
|
|
import { mapGetters } from 'vuex';
|
|
|
|
|
2019-03-04 06:27:57 -05:00
|
|
|
export default {
|
|
|
|
computed: {
|
2020-06-01 02:08:21 -04:00
|
|
|
...mapGetters('batchComments', [
|
|
|
|
'shouldRenderDraftRow',
|
|
|
|
'shouldRenderParallelDraftRow',
|
2022-09-28 08:07:50 -04:00
|
|
|
'draftsForLine',
|
2020-06-01 02:08:21 -04:00
|
|
|
'draftsForFile',
|
|
|
|
'hasParallelDraftLeft',
|
|
|
|
'hasParallelDraftRight',
|
|
|
|
]),
|
2019-04-12 05:27:24 -04:00
|
|
|
imageDiscussions() {
|
2020-06-01 02:08:21 -04:00
|
|
|
return this.diffFile.discussions.concat(this.draftsForFile(this.diffFile.file_hash));
|
2019-04-12 05:27:24 -04:00
|
|
|
},
|
2019-03-04 06:27:57 -05:00
|
|
|
},
|
|
|
|
};
|