Skip to content

Commit

Permalink
#1948 WIP: Use limited case in cases list
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Apr 10, 2021
1 parent f8c4c0f commit d34b083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/app/scripts/controllers/case/CaseListCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
scope: $scope,
sort: self.filtering.context.sort,
loadAll: false,
limitedCount: true,
pageSize: self.filtering.context.pageSize,
filter: this.filtering.buildQuery(),
operations: [
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/views/partials/case/case.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="box">
<div class="box-header with-border">
<!-- <h3 class="box-title">List of cases ({{$vm.list.values.length || 0}} of {{$vm.list.total}})</h3> -->
<h3 class="box-title">List of alerts ({{$vm.list.total || 0}} of {{$vm.caseCountAll}})</h3>
<h3 class="box-title">List of alerts ({{$vm.list.total | limitedCount}} of {{$vm.caseCountAll}})</h3>
<div class="box-tools pull-right" ng-show="!appLayout.showFlow">
<span class="ml-xs" tooltip="Open in new window">
<a class="text-muted" href ng-click="layoutSrv.showFlow(true)">
Expand Down Expand Up @@ -34,7 +34,7 @@ <h3 class="box-title">List of alerts ({{$vm.list.total || 0}} of {{$vm.caseCount
<div class="empty-message">No records</div>
</div>

<div class="col-md-12" ng-show="$vm.list.total > 0">
<div class="col-md-12" ng-show="$vm.list.total !== 0">
<psearch control="$vm.list"></psearch>

<table class="table table-striped case-list">
Expand Down

0 comments on commit d34b083

Please sign in to comment.