-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathDropdownStep.vue
44 lines (44 loc) · 1023 Bytes
/
DropdownStep.vue
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
<template>
<div class="step-content">
<div
v-if="status==='previous'"
class="step-description"
>
{{ cardText }}
</div>
<div
v-else-if="status==='current'"
class="step-actions"
>
<LicenseDropdown @input="updateSelected" />
</div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import LicenseDropdown from './LicenseDropdown'
export default {
name: 'DropdownStep',
components: { LicenseDropdown },
props: {
status: {
type: String,
validator(value) {
return ['current', 'previous', 'inactive'].includes(value)
}
},
stepId: Number
},
computed: {
...mapGetters(['fullName']),
cardText() {
return this.fullName
}
},
methods: {
updateSelected() {
this.$emit('input', 'DD', this.$props.stepId, true)
}
}
}
</script>