set submit flag when the modal is opened

This commit is contained in:
Andrew Croce 2018-10-03 09:58:36 -04:00
parent e8dcddfa65
commit e86f93243b

View File

@ -40,6 +40,7 @@ export default {
errors: [], errors: [],
environments, environments,
name, name,
readyToSubmit: false
} }
}, },
@ -106,6 +107,7 @@ export default {
isValid = this.errors.length == 0 && isValid isValid = this.errors.length == 0 && isValid
if (isValid) { if (isValid) {
this.readyToSubmit = true
this.openModal(modalName) this.openModal(modalName)
} }
} }