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

issue_warning.vue « issue « 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: 0f11b6e22232095294adea1338298848de26a6e8 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<script>
  export default {
    props: {
      isLocked: {
        type: Boolean,
        default: false,
      },

      isConfidential: {
        type: Boolean,
        default: false,
      },
    },

    computed: {
      iconClass() {
        return {
          'fa-eye-slash': this.isConfidential,
          'fa-lock': this.isLocked,
        };
      },

      isLockedAndConfidential() {
        return this.isConfidential && this.isLocked;
      },
    },
  };
</script>
<template>
  <div class="issuable-note-warning">
    <i
      aria-hidden="true"
      class="fa"
      :class="iconClass"
      v-if="!isLockedAndConfidential"
    ></i>

    <span v-if="isLockedAndConfidential">
      {{ __('This issue is confidential and locked.') }}
      {{ __('People without permission will never get a notification and not be able to comment.') }}
    </span>

    <span v-else-if="isConfidential">
      {{ __('This is a confidential issue.') }}
      {{ __('Your comment will not be visible to the public.') }}
    </span>

    <span v-else-if="isLocked">
      {{ __('This issue is locked.') }}
      {{ __('Only project members can comment.') }}
    </span>
  </div>
</template>