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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-15 19:00:16 +0300
committerPhil Hughes <me@iamphill.com>2017-05-15 19:00:16 +0300
commitc4fea61f152bc8ea73d912af3467a35b34e74aaf (patch)
treed1c07faa0419186db478c917b0272908ce88b331 /app/assets/javascripts/issue_show/components/fields
parent36df19e71b53a78da9db15b65c405c50089da7b3 (diff)
Added inline confidential field
[ci skip]
Diffstat (limited to 'app/assets/javascripts/issue_show/components/fields')
-rw-r--r--app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue b/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue
new file mode 100644
index 00000000000..ce0471d499a
--- /dev/null
+++ b/app/assets/javascripts/issue_show/components/fields/confidential_checkbox.vue
@@ -0,0 +1,23 @@
+<script>
+ export default {
+ props: {
+ formState: {
+ type: Object,
+ required: true,
+ },
+ },
+ };
+</script>
+
+<template>
+ <fieldset class="checkbox">
+ <label for="issue_confidential">
+ <input
+ type="checkbox"
+ value="1"
+ id="issue_confidential"
+ v-model="formState.confidential" />
+ This issue is confidential and should only be visible to team members with at least Reporter access.
+ </label>
+ </fieldset>
+</template>