diff --git a/js/components/forms/new_project.js b/js/components/forms/new_project.js index a0831116..8d930d1a 100644 --- a/js/components/forms/new_project.js +++ b/js/components/forms/new_project.js @@ -94,6 +94,11 @@ export default { } }, + handleCancelSubmit: function () { + this.readyToSubmit = false + this.closeModal(this.modalName) + }, + validateAndOpenModal: function (modalName) { let isValid = this.$children.reduce((previous, newVal) => { // display textInput error if it is not valid diff --git a/templates/fragments/edit_project_form.html b/templates/fragments/edit_project_form.html index 1a3d96b6..b442d3f8 100644 --- a/templates/fragments/edit_project_form.html +++ b/templates/fragments/edit_project_form.html @@ -23,7 +23,7 @@
- +
{% endcall %}