summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/components/source_branch_removal_status.vue
blob: 780ecdcdac433f56a13d276a5bce9f3eb0c3d3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script>
import tooltip from '../../vue_shared/directives/tooltip';
import { __ } from '../../locale';

export default {
  directives: {
    tooltip,
  },
  created() {
    this.removesBranchText = __('<strong>Deletes</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>