Skip to content

Commit

Permalink
#1454 Update the all the FilteringSrv instances to use the new entity…
Browse files Browse the repository at this point in the history
… names from APIs v1
  • Loading branch information
nadouani committed Dec 12, 2020
1 parent 7c8fdc2 commit fb928e0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var self = this;

self.$onInit = function() {
this.filtering = new FilteringSrv('case_artifact', 'alert.dialog.observables', {
this.filtering = new FilteringSrv('observable', 'alert.dialog.observables', {
version: 'v1',
defaults: {
showFilters: false,
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/scripts/controllers/MainPageCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
self.view.data = 'waitingtasks';
}

self.filtering = new FilteringSrv('case_task', $stateParams.viewId + '.list', {
self.filtering = new FilteringSrv('task', $stateParams.viewId + '.list', {
version: 'v1',
defaults: {
showFilters: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/scripts/controllers/case/CaseTasksCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$scope.collapseOptions = {};

this.$onInit = function() {
$scope.filtering = new FilteringSrv('case_task', 'task.list', {
$scope.filtering = new FilteringSrv('task', 'task.list', {
version: 'v1',
defaults: {
showFilters: true,
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 @@ -76,8 +76,8 @@ <h3 class="box-title">List of cases ({{$vm.list.total || 0}} of {{$vm.caseCount}
</span>
</div>

<custom-field-labels ng-if="$vm.filtering.context.showAdvanced" custom-fields="currentCase.customFields" on-field-click="$vm.addFilterValue(name, value)"><custom-field-labels>

<custom-field-labels ng-if="$vm.filtering.context.showAdvanced" custom-fields="currentCase.customFields" on-field-click="$vm.addFilterValue(name, value)"></custom-field-labels>
<div class="text-success" ng-show="currentCase.status !== 'Open'">
<small>
(Closed at {{currentCase.endDate | showDate}} as <strong>{{$vm.CaseResolutionStatus[currentCase.resolutionStatus]}}</strong>)
Expand Down

0 comments on commit fb928e0

Please sign in to comment.