Skip to content

Commit

Permalink
#1410 Use the new case.extraData.observableStats.total instead of .count
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jun 28, 2020
1 parent 8154d04 commit c271b2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions frontend/app/scripts/controllers/case/CaseListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@
};

this.load = function() {
// this.list = PSearchSrv(undefined, 'case', {
// scope: $scope,
// filter: this.filtering.buildQuery(),
// loadAll: false,
// sort: self.filtering.context.sort,
// pageSize: self.filtering.context.pageSize,
// nstats: true
// });

this.list = new PaginatedQuerySrv({
root: undefined,
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/views/partials/case/case.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3 class="box-title">List of cases ({{$vm.list.total || 0}} of {{$vm.caseStats.
<task-progress ng-show="currentCase.extraData.taskStats.total > 0" tasks="currentCase.extraData.taskStats"/>
</td>
<td>
<a ui-sref="app.case.observables({caseId: currentCase._id})">{{currentCase.extraData.observableStats.count}}</a>
<a ui-sref="app.case.observables({caseId: currentCase._id})">{{currentCase.extraData.observableStats.total}}</a>
</td>
<td class="nowrap">
<user user-id="currentCase.assignee" icon-only="true" icon-size="m"></user>
Expand Down

0 comments on commit c271b2a

Please sign in to comment.