Display contribution balances not token balances

We want to display the contribution balances (kredits earned) of the
contributors not the token balances.
This commit is contained in:
2019-04-19 18:16:02 +02:00
parent 83fd9a94b0
commit d1791cadfe
6 changed files with 18 additions and 8 deletions
+8
View File
@@ -116,6 +116,14 @@ export default Service.extend({
})
}),
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
.then(total => {
return total.toNumber();
});
}),
loadInitialData() {
return this.getContributors()
.then(contributors => this.contributors.pushObjects(contributors))