Skip to content

Commit 009b880

Browse files
author
Guillaume Chau
committed
fix(ui): Prompt validation
1 parent ce4cf9a commit 009b880

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/@vue/cli-ui/src/views/ProjectCreate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export default {
425425
426426
configurationValid () {
427427
return this.enabledPrompts.filter(
428-
p => p.value === null
428+
p => p.value === null || JSON.parse(p.value) === ''
429429
).length === 0
430430
},
431431

packages/@vue/cli-ui/src/views/ProjectPluginsAdd.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export default {
184184
185185
computed: {
186186
configurationValid () {
187-
return false
187+
return this.enabledPrompts.filter(
188+
p => p.value === null || JSON.parse(p.value) === ''
189+
).length === 0
188190
},
189191
190192
enabledPrompts () {

0 commit comments

Comments
 (0)