mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 08:57:35 -02:30
Merge pull request #5037 from mabashian/4033-jt-list-socket-pagination
Templates list socket refresh back to page 1
This commit is contained in:
@@ -77,7 +77,7 @@ export default ['$scope', '$rootScope', '$location', '$stateParams', 'Rest',
|
|||||||
// attempts to transition the state and they were squashing each other.
|
// attempts to transition the state and they were squashing each other.
|
||||||
|
|
||||||
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
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) {
|
.then(function(searchResponse) {
|
||||||
$scope[`${list.iterator}_dataset`] = searchResponse.data;
|
$scope[`${list.iterator}_dataset`] = searchResponse.data;
|
||||||
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
||||||
|
|||||||
Reference in New Issue
Block a user