Fix actions, etc.

This commit is contained in:
2020-05-11 10:06:12 +02:00
parent 018132034d
commit 22300c2980
11 changed files with 30 additions and 24 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ export default Component.extend({
actions: {
submit () {
submit (evt) {
evt.preventDefault();
if (!this.isValid) {
alert('Invalid data. Please review and try again.');
return;
+1 -1
View File
@@ -1,4 +1,4 @@
<form {{on "submit" this.submit}}>
<form onsubmit={{action "submit"}}>
<label>
<p class="label">Contributor:</p>
<p>