Skip to content

Commit 179e10b

Browse files
committed
Adjust selected steps
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent 6ed9e09 commit 179e10b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/components/Stepper.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ export default {
152152
return base
153153
},
154154
attributeType(attrName) {
155-
if (attrName === 'BY' || attrName === 'wv' || attrName === 'ad' || this.$props.value.shortName.includes(attrName)) {
156-
return 'selected'
157-
} else { return 'unselected' }
155+
if (this.$props.value.shortName.includes('CC0')) {
156+
return 'is-step-selected'
157+
}
158+
if (attrName === 'wv' || attrName === 'ad' || !this.$props.value.shortName.includes(attrName)) {
159+
return 'is-step-not_selected'
160+
} else { return 'is-step-selected' }
158161
},
159162
isStepSelected(attrName) {
160163
return this.$props.value.shortName.includes(attrName)
@@ -163,7 +166,13 @@ export default {
163166
if (this.$props.value.shortName.includes('CC0')) {
164167
return (attrName === 'BY' || attrName === 'wv' || attrName === 'ad')
165168
}
166-
return !(this.$props.value.shortName.includes('ND') && attrName === 'SA') && !(attrName === 'wv')
169+
return !(attrName === 'wv')
170+
},
171+
isStepClickable(attrName) {
172+
if (this.$props.value.shortName.includes('ND')) {
173+
return attrName !== 'SA'
174+
}
175+
return true
167176
}
168177
}
169178
}

0 commit comments

Comments
 (0)