diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/assets/javascripts/batch_comments | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'app/assets/javascripts/batch_comments')
3 files changed, 6 insertions, 81 deletions
diff --git a/app/assets/javascripts/batch_comments/components/inline_draft_comment_row.vue b/app/assets/javascripts/batch_comments/components/inline_draft_comment_row.vue deleted file mode 100644 index 385725cd109..00000000000 --- a/app/assets/javascripts/batch_comments/components/inline_draft_comment_row.vue +++ /dev/null @@ -1,32 +0,0 @@ -<script> -import DraftNote from './draft_note.vue'; - -export default { - components: { - DraftNote, - }, - props: { - draft: { - type: Object, - required: true, - }, - diffFile: { - type: Object, - required: true, - }, - line: { - type: Object, - required: false, - default: null, - }, - }, -}; -</script> - -<template> - <tr class="notes_holder js-temp-notes-holder"> - <td class="notes-content" colspan="4"> - <div class="content"><draft-note :draft="draft" :diff-file="diffFile" :line="line" /></div> - </td> - </tr> -</template> diff --git a/app/assets/javascripts/batch_comments/components/parallel_draft_comment_row.vue b/app/assets/javascripts/batch_comments/components/parallel_draft_comment_row.vue deleted file mode 100644 index b0916623cd2..00000000000 --- a/app/assets/javascripts/batch_comments/components/parallel_draft_comment_row.vue +++ /dev/null @@ -1,49 +0,0 @@ -<script> -import { mapGetters } from 'vuex'; -import DraftNote from './draft_note.vue'; - -export default { - components: { - DraftNote, - }, - props: { - line: { - type: Object, - required: true, - }, - diffFileContentSha: { - type: String, - required: true, - }, - }, - computed: { - ...mapGetters('batchComments', ['draftForLine']), - className() { - return this.leftDraft > 0 || this.rightDraft > 0 ? '' : 'js-temp-notes-holder'; - }, - leftDraft() { - return this.draftForLine(this.diffFileContentSha, this.line, 'left'); - }, - rightDraft() { - return this.draftForLine(this.diffFileContentSha, this.line, 'right'); - }, - }, -}; -</script> - -<template> - <tr :class="className" class="notes_holder"> - <td class="notes_line old"></td> - <td class="notes-content parallel old" colspan="2"> - <div v-if="leftDraft.isDraft" class="content"> - <draft-note :draft="leftDraft" :line="line.left" /> - </div> - </td> - <td class="notes_line new"></td> - <td class="notes-content parallel new" colspan="2"> - <div v-if="rightDraft.isDraft" class="content"> - <draft-note :draft="rightDraft" :line="line.right" /> - </div> - </td> - </tr> -</template> diff --git a/app/assets/javascripts/batch_comments/mixins/resolved_status.js b/app/assets/javascripts/batch_comments/mixins/resolved_status.js index 2517fb198f0..0b085da1ff9 100644 --- a/app/assets/javascripts/batch_comments/mixins/resolved_status.js +++ b/app/assets/javascripts/batch_comments/mixins/resolved_status.js @@ -1,7 +1,9 @@ import { mapGetters } from 'vuex'; import { sprintf, s__, __ } from '~/locale'; +import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; export default { + mixins: [glFeatureFlagsMixin()], props: { discussionId: { type: String, @@ -54,6 +56,10 @@ export default { let title = __('Mark as resolved'); + if (this.glFeatures.removeResolveNote) { + title = __('Resolve thread'); + } + if (this.resolvedBy) { title = sprintf(__('Resolved by %{name}'), { name: this.resolvedBy.name }); } |