Commit b10dcc62 authored by Georgios Ouzounis's avatar Georgios Ouzounis
Browse files

Merge pull request #278 from ioantsaf/delete-app-count

[Bug 9] Update app count, when deleting an app
parents dc9369bb c5fb7a14
......@@ -13,6 +13,10 @@ export default Ember.ArrayController.extend({
sortProperties: ['name'],
sortAscending: true,
appCount: Ember.computed('model.length', function() {
return this.get('model.length');
page: 1,
perPage: 10,
firstOfCurrentPage: Ember.computed('page', 'perPage', function() {
......@@ -23,8 +27,8 @@ export default Ember.ArrayController.extend({
return (this.get('page')-1)*(this.get('perPage'))+1;
lastOfCurrentPage: Ember.computed('page', 'perPage', 'content', function() {
return Math.min(this.get('content.length'), (this.get('page'))*(this.get('perPage')));
lastOfCurrentPage: Ember.computed('page', 'perPage', 'appCount', function() {
return Math.min(this.get('appCount'), (this.get('page'))*(this.get('perPage')));
pagedContent: pagedArray('arrangedContent', {pageBinding: "page", perPageBinding: "perPage"}),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment