summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/components/source_branch_removal_status.vue
blob: d50d97e3570d43f7df0fcf02f6a5107f11783bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script>
import { GlIcon, GlSprintf, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '../../locale';

export default {
  i18n: {
    removesBranchText: __('%{strongStart}Deletes%{strongEnd} source branch'),
    tooltipTitle: __('A user with write access to the source branch selected this option'),
  },
  components: {
    GlIcon,
    GlSprintf,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
};
</script>

<template>
  <p v-once class="mr-info-list gl-ml-7 gl-pb-5 gl-mb-0">
    <span class="status-text">
      <gl-sprintf :message="$options.i18n.removesBranchText">
        <template #strong="{ content }">
          <strong>{{ content }}</strong>
        </template>
      </gl-sprintf>
    </span>
    <gl-icon
      v-gl-tooltip.hover
      :title="$options.i18n.tooltipTitle"
      :aria-label="$options.i18n.tooltipTitle"
      name="question-o"
    />
  </p>
</template>