Skip to content

Commit 6dda97a

Browse files
committed
Make 'Next' button disabled on CopyrightWaiverStep after checkbox unselected
Signed-off-by: Olga Bulat <obulat@gmail.com>
1 parent ee2218d commit 6dda97a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/CopyrightWaiverStep.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export default {
4040
this.agreed = !this.agreed
4141
if (this.agreed && this.confirmed) {
4242
this.$emit('change', this.$props.stepName, this.$props.stepId, true)
43+
} else if (!this.agreed) {
44+
this.$emit('change', this.$props.stepName, this.$props.stepId, undefined)
4345
}
4446
}
4547
},
@@ -51,6 +53,8 @@ export default {
5153
this.confirmed = !this.confirmed
5254
if (this.agreed && this.confirmed) {
5355
this.$emit('change', this.$props.stepName, this.$props.stepId, true)
56+
} else if (!this.confirmed) {
57+
this.$emit('change', this.$props.stepName, this.$props.stepId, undefined)
5458
}
5559
}
5660
}

0 commit comments

Comments
 (0)