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

advanced_settings.vue « components « import_projects « import_entities « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d22a52df32684f99cbacca5628633408e5f810d6 (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>
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]"
          :data-qa-option-name="name"
          data-testid="advanced-settings-checkbox"
          @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>