FIX: Admin groups editor was showing extra page when exactly 50 records

This commit is contained in:
Robin Ward 2017-05-17 11:49:59 -04:00
parent bdd4a9e69d
commit 9090c7b05b
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default Ember.Component.extend({
@computed('model.limit', 'model.user_count')
totalPages(limit, userCount) {
if (userCount === 0) { return 0; }
return Math.floor(userCount / limit) + 1;
return Math.ceil(userCount / limit);
},
@computed('model.usernames')