Move contributor-creation form for separate view

closes #74
This commit is contained in:
2019-05-23 14:17:33 +02:00
parent 4efd6f8f88
commit 16ee3b6b6b
7 changed files with 53 additions and 31 deletions
+3 -1
View File
@@ -190,7 +190,9 @@ export default Service.extend({
return this.kredits.Contributor.add(attributes, { gasLimit: 350000 })
.then(data => {
console.debug('[kredits] add contributor response', data);
return Contributor.create(attributes);
const contributor = Contributor.create(attributes);
this.contributors.pushObject(contributor);
return contributor;
});
},