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 af9951ca5a - Show all commits
+5 -1
View File
@@ -210,7 +210,11 @@ export default Service.extend({
.then(data => {
console.debug('[kredits] add contribution response', data);
attributes.contributor = this.contributors.findBy('id', attributes.contributorId);
return Contribution.create(attributes);
const contribution = Contribution.create(attributes);
// TODO receive from wrapper
contribution.set('confirmedAtBlock', data.blockNumber + 40320);
this.contributions.pushObject(contribution);
return contribution;
});
},