Submit contributions via form #119

Merged
raucao merged 13 commits from feature/118-contribution_form into master 2019-05-29 07:49:16 +00:00
Showing only changes of commit 9a98b37bb6 - Show all commits
+2 -3
View File
1
@@ -55,13 +55,12 @@ export default Component.extend({
this.set('inProgress', true);
this.save(attributes)
.then(contribution => {
console.debug('contribution', contribution);
.then((/*contribution*/) => {
this.reset();
window.scroll(0,0);
}, err => {
console.warn(err);
window.alert('Fail');
window.alert('Something went wrong. Check the browser console for details.');
})
.finally(() => this.set('inProgress', false));