mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
Reset the credential query param page to 1 when the type dropdown is changed
This commit is contained in:
parent
59157565bd
commit
39fa79798d
@ -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)
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user