Pagination error in active/merged/invalid stories in projects resolved.

Story: 2000656
Task : 3114

Change-Id: I9372e843a77d1c021116cb324a18c7cfc96e638b
Signed-off-by: Ankita Bansal <ankitabansal2798@gmail.com>
This commit is contained in:
Ankita Bansal 2019-03-09 17:34:57 +05:30
parent 13984cb8de
commit 286f28254a
1 changed files with 7 additions and 1 deletions

View File

@ -35,14 +35,20 @@ angular.module('sb.projects').controller('ProjectStoryListController',
$scope.isSearching = false;
$scope.filter = 'active';
$scope.offsets = {
'active': 0,
'merged': 0,
'invalid': 0
};
/**
* Set the filter and refresh the search.
*/
$scope.setFilter = function (state) {
$scope.offsets[$scope.filter] = $scope.searchOffset;
$scope.filter = state;
$scope.searchOffset = $scope.offsets[$scope.filter];
$scope.search();
};
/**
* The search method.
*/