FIX: Admin groups editor was showing extra page when exactly 50 records
This commit is contained in:
parent
bdd4a9e69d
commit
9090c7b05b
|
@ -15,7 +15,7 @@ export default Ember.Component.extend({
|
||||||
@computed('model.limit', 'model.user_count')
|
@computed('model.limit', 'model.user_count')
|
||||||
totalPages(limit, userCount) {
|
totalPages(limit, userCount) {
|
||||||
if (userCount === 0) { return 0; }
|
if (userCount === 0) { return 0; }
|
||||||
return Math.floor(userCount / limit) + 1;
|
return Math.ceil(userCount / limit);
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('model.usernames')
|
@computed('model.usernames')
|
||||||
|
|
Loading…
Reference in New Issue