1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Merge pull request #112 from mabashian/7326-credential-pagination

Reset the credential query param page to 1 when the type dropdown is changed
This commit is contained in:
Michael Abashian 2017-08-01 08:08:21 -04:00 committed by GitHub
commit f06f75caee
2 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ export default
};
$scope.$watch('credentialKind', function(){
$scope.credential_queryset.page = 1;
$scope.credential_default_params.credential_type = $scope.credential_queryset.credential_type = parseInt($scope.credentialKind);
qs.search(GetBasePath('credentials'), $scope.credential_default_params)

View File

@ -135,6 +135,7 @@ export default ['templateUrl', 'Rest', 'GetBasePath', 'generateList', '$compile'
};
$scope.$watch('credentialKind', function(){
$scope.credential_queryset.page = 1;
$scope.credential_default_params.credential_type = $scope
.credential_queryset.credential_type = parseInt($scope
.credentialKind);