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

confidentiality_badge.vue « components « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 31c98d1e3a70c57beaa7aa3853ee83e729707f8a (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
37
38
39
<script>
import { GlBadge, GlTooltipDirective } from '@gitlab/ui';
import { confidentialityInfoText } from '../constants';

export default {
  components: {
    GlBadge,
  },
  directives: {
    GlTooltip: GlTooltipDirective,
  },
  props: {
    workspaceType: {
      type: String,
      required: true,
    },
    issuableType: {
      type: String,
      required: true,
    },
  },
  computed: {
    confidentialTooltip() {
      return confidentialityInfoText(this.workspaceType, this.issuableType);
    },
  },
};
</script>

<template>
  <gl-badge
    v-gl-tooltip.bottom
    :title="confidentialTooltip"
    icon="eye-slash"
    variant="warning"
    class="gl-display-inline gl-mr-3"
    >{{ __('Confidential') }}</gl-badge
  >
</template>