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
|
<script>
import { GlAccordion, GlAccordionItem, GlAlert, GlForm, GlFormCheckbox } from '@gitlab/ui';
export default {
components: {
GlAccordion,
GlAccordionItem,
GlAlert,
GlForm,
GlFormCheckbox,
},
props: {
stages: {
required: true,
type: Array,
},
value: {
required: true,
type: Object,
},
isInitiallyExpanded: {
type: Boolean,
required: false,
default: false,
},
},
};
</script>
<template>
<gl-accordion :header-level="3">
<gl-accordion-item
:title="s__('ImportProjects|Advanced import settings')"
:visible="isInitiallyExpanded"
>
<gl-alert variant="warning" class="gl-mb-5" :dismissible="false">{{
s__('ImportProjects|The more information you select, the longer it will take to import')
}}</gl-alert>
<gl-form>
<gl-form-checkbox
v-for="{ name, label, details } in stages"
:key="name"
:checked="value[name]"
@change="$emit('input', { ...value, [name]: $event })"
>
{{ label }}
<template v-if="details" #help>{{ details }} </template>
</gl-form-checkbox>
</gl-form>
</gl-accordion-item>
</gl-accordion>
</template>
|