debian-mirror-gitlab/app/assets/javascripts/boards/components/board_configuration_options.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.1 KiB
Vue
Raw Normal View History

2021-01-03 14:25:43 +05:30
<script>
import { GlFormCheckbox } from '@gitlab/ui';
export default {
components: {
GlFormCheckbox,
},
props: {
2021-03-08 18:12:59 +05:30
hideBacklogList: {
type: Boolean,
2021-01-03 14:25:43 +05:30
required: true,
},
2021-03-08 18:12:59 +05:30
hideClosedList: {
2021-01-03 14:25:43 +05:30
type: Boolean,
2021-03-08 18:12:59 +05:30
required: true,
2021-01-03 14:25:43 +05:30
},
2021-03-11 19:13:27 +05:30
readonly: {
type: Boolean,
required: true,
},
2021-01-03 14:25:43 +05:30
},
};
</script>
<template>
2021-02-22 17:27:13 +05:30
<div class="gl-mb-5">
2021-01-29 00:20:46 +05:30
<label class="label-bold gl-font-lg" for="board-new-name">
2021-01-03 14:25:43 +05:30
{{ __('List options') }}
</label>
<p class="text-secondary gl-mb-3">
{{ __('Configure which lists are shown for anyone who visits this board') }}
</p>
<gl-form-checkbox
:checked="!hideBacklogList"
2021-03-11 19:13:27 +05:30
:disabled="readonly"
2021-01-03 14:25:43 +05:30
data-testid="backlog-list-checkbox"
2021-03-08 18:12:59 +05:30
@change="$emit('update:hideBacklogList', !hideBacklogList)"
2021-01-03 14:25:43 +05:30
>{{ __('Show the Open list') }}
</gl-form-checkbox>
<gl-form-checkbox
:checked="!hideClosedList"
2021-03-11 19:13:27 +05:30
:disabled="readonly"
2021-01-03 14:25:43 +05:30
data-testid="closed-list-checkbox"
2021-03-08 18:12:59 +05:30
@change="$emit('update:hideClosedList', !hideClosedList)"
2021-01-03 14:25:43 +05:30
>{{ __('Show the Closed list') }}
</gl-form-checkbox>
</div>
</template>