summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/components/source_branch_removal_status.vue
blob: 01f707163d4e981f6a2cf0b6ec38a55dd79bc5a1 (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
<script>
import tooltip from '../../vue_shared/directives/tooltip';
import { __ } from '../../locale';

export default {
  directives: {
    tooltip,
  },
  created() {
    this.removesBranchText = __('<strong>Removes</strong> source branch');
    this.tooltipTitle = __('A user with write access to the source branch selected this option');
  },
};
</script>

<template>
  <p
    v-once
    class="mr-info-list mr-links source-branch-removal-status append-bottom-0"
  >
    <span
      class="status-text"
      v-html="removesBranchText"
    >
    </span>
    <i
      v-tooltip
      :title="tooltipTitle"
      :aria-label="tooltipTitle"
      class="fa fa-question-circle"
    >
    </i>
  </p>
</template>