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
|
<script>
// eslint-disable-next-line no-restricted-imports
import { mapGetters } from 'vuex';
import DynamicField from '../dynamic_field.vue';
export default {
name: 'IntegrationSectionConfiguration',
components: {
DynamicField,
},
props: {
fields: {
type: Array,
required: false,
default: () => [],
},
isValidated: {
type: Boolean,
required: false,
default: false,
},
},
computed: {
...mapGetters(['currentKey']),
},
};
</script>
<template>
<div>
<dynamic-field
v-for="field in fields"
:key="`${currentKey}-${field.name}`"
v-bind="field"
:is-validated="isValidated"
:data-qa-selector="`${field.name}_div`"
/>
</div>
</template>
|