Merge pull request #5037 from mabashian/4033-jt-list-socket-pagination

Templates list socket refresh back to page 1
This commit is contained in:
Michael Abashian 2017-01-31 09:08:34 -05:00 committed by GitHub
commit 18898ac345

View File

@ -77,7 +77,7 @@ export default ['$scope', '$rootScope', '$location', '$stateParams', 'Rest',
// attempts to transition the state and they were squashing each other.
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
qs.search(path, $stateParams[`${list.iterator}_search`])
qs.search(path, $state.params[`${list.iterator}_search`])
.then(function(searchResponse) {
$scope[`${list.iterator}_dataset`] = searchResponse.data;
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;