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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user