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

edit_form.vue « confidential « components « sidebar « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9dd4f04acdbb423f0899b7a180bee75269d74636 (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
<script>
import editFormButtons from './edit_form_buttons.vue';
import { s__ } from '../../../locale';

export default {
  components: {
    editFormButtons,
  },
  props: {
    isConfidential: {
      required: true,
      type: Boolean,
    },
    fullPath: {
      required: true,
      type: String,
    },
  },
  computed: {
    confidentialityOnWarning() {
      return s__(
        'confidentiality|You are going to turn on the confidentiality. This means that only team members with <strong>at least Reporter access</strong> are able to see and leave comments on the issue.',
      );
    },
    confidentialityOffWarning() {
      return s__(
        'confidentiality|You are going to turn off the confidentiality. This means <strong>everyone</strong> will be able to see and leave a comment on this issue.',
      );
    },
  },
};
</script>

<template>
  <div class="dropdown show">
    <div class="dropdown-menu sidebar-item-warning-message">
      <div>
        <p v-if="!isConfidential" v-html="confidentialityOnWarning"></p>
        <p v-else v-html="confidentialityOffWarning"></p>
        <edit-form-buttons :full-path="fullPath" />
      </div>
    </div>
  </div>
</template>