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:
commit
f06f75caee
@ -55,6 +55,7 @@ export default
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch('credentialKind', function(){
|
$scope.$watch('credentialKind', function(){
|
||||||
|
$scope.credential_queryset.page = 1;
|
||||||
$scope.credential_default_params.credential_type = $scope.credential_queryset.credential_type = parseInt($scope.credentialKind);
|
$scope.credential_default_params.credential_type = $scope.credential_queryset.credential_type = parseInt($scope.credentialKind);
|
||||||
|
|
||||||
qs.search(GetBasePath('credentials'), $scope.credential_default_params)
|
qs.search(GetBasePath('credentials'), $scope.credential_default_params)
|
||||||
|
@ -135,6 +135,7 @@ export default ['templateUrl', 'Rest', 'GetBasePath', 'generateList', '$compile'
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch('credentialKind', function(){
|
$scope.$watch('credentialKind', function(){
|
||||||
|
$scope.credential_queryset.page = 1;
|
||||||
$scope.credential_default_params.credential_type = $scope
|
$scope.credential_default_params.credential_type = $scope
|
||||||
.credential_queryset.credential_type = parseInt($scope
|
.credential_queryset.credential_type = parseInt($scope
|
||||||
.credentialKind);
|
.credentialKind);
|
||||||
|
Loading…
Reference in New Issue
Block a user