Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jun 26, 2020
1 parent 9b603a1 commit 2c370f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/app/scripts/controllers/case/CaseListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
this.list = new PaginatedQuerySrv({
root: undefined,
objectType: 'case',
version: 'v0',
version: 'v1',
scope: $scope,
sort: self.filtering.context.sort,
loadAll: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@
}
}
// TODO nadouani: handle the total differently
self.total = data.length;
//self.total = data.length;
});

// get the total if not cached
if(this.filterHash !== $filter('md5')(JSON.stringify(this.filter))) {
var hash = $filter('md5')(JSON.stringify(this.filter));
if(this.filterHash !== hash) {
this.filterHash = hash;

// Compute the total again
QuerySrv.count('v1', this.operations, {
filter: self.filter,
Expand Down

0 comments on commit 2c370f9

Please sign in to comment.