Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/issuable/components/issuable_header_warnings.vue')
-rw-r--r--app/assets/javascripts/issuable/components/issuable_header_warnings.vue11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/assets/javascripts/issuable/components/issuable_header_warnings.vue b/app/assets/javascripts/issuable/components/issuable_header_warnings.vue
index 543dca0afe1..14325d6b64e 100644
--- a/app/assets/javascripts/issuable/components/issuable_header_warnings.vue
+++ b/app/assets/javascripts/issuable/components/issuable_header_warnings.vue
@@ -1,11 +1,16 @@
<script>
import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { mapGetters } from 'vuex';
-import { __ } from '~/locale';
+import { sprintf, __ } from '~/locale';
import { IssuableType, WorkspaceType } from '~/issues/constants';
import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import ConfidentialityBadge from '~/vue_shared/components/confidentiality_badge.vue';
+const NoteableTypeText = {
+ issue: __('issue'),
+ merge_request: __('merge request'),
+};
+
export default {
WorkspaceType,
IssuableType,
@@ -40,7 +45,9 @@ export default {
iconName: 'spam',
visible: this.hidden,
dataTestId: 'hidden',
- tooltip: __('This issue is hidden because its author has been banned'),
+ tooltip: sprintf(__('This %{issuable} is hidden because its author has been banned'), {
+ issuable: NoteableTypeText[this.getNoteableData.targetType],
+ }),
},
];
},