Move contributors + proposals to service

With this change we have all the contributors + proposals all the time in one place and can update them via events.
This commit is contained in:
2018-04-15 19:02:57 +02:00
parent fdda30da67
commit 99bbcda709
11 changed files with 36 additions and 78 deletions
-22
View File
@@ -1,22 +0,0 @@
import Ember from 'ember';
export default Ember.Route.extend({
kredits: Ember.inject.service(),
model() {
let newContributor = Ember.getOwner(this).lookup('model:contributor');
newContributor.set('kind', 'person');
let kredits = this.get('kredits');
let totalSupply = kredits.get('kredits').Token.functions.totalSupply();
return Ember.RSVP.hash({
contributors: kredits.getContributors(),
proposals: kredits.getProposals(),
totalSupply,
newContributor: newContributor,
});
}
});