List only contrbutors with more than 0 kredits

This is a bit of a problem because we list integer values, so if
somebody has less than 1 Kredit than they would still show up. Not sure
what is the best to do here. - but this should be good enough for now.
This commit is contained in:
2019-04-19 11:45:53 +02:00
parent 2aae2a8f90
commit 6f4afaf84a
+1 -1
View File
@@ -9,7 +9,7 @@ export default Controller.extend({
contributors: alias('kredits.contributors'),
contributorsWithKredits: filter('contributors', function(contributor) {
return contributor.get('balance') !== 0;
return contributor.get('balanceRaw').gt(0);
}),
contributorsSorting: Object.freeze(['balance:desc']),
contributorsSorted: sort('contributorsWithKredits', 'contributorsSorting'),