mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Fixing issue where pagination was overwriting the default params for a group
when selecting a child group from a paginated set of groups.
This commit is contained in:
@@ -77,7 +77,15 @@
|
|||||||
|
|
||||||
$scope.groupSelect = function(id){
|
$scope.groupSelect = function(id){
|
||||||
var group = $stateParams.group === undefined ? [id] : _($stateParams.group).concat(id).value();
|
var group = $stateParams.group === undefined ? [id] : _($stateParams.group).concat(id).value();
|
||||||
$state.go('inventoryManage', {inventory_id: $stateParams.inventory_id, group: group}, {reload: true});
|
$state.go('inventoryManage', {
|
||||||
|
inventory_id: $stateParams.inventory_id,
|
||||||
|
group: group,
|
||||||
|
group_search: {
|
||||||
|
page_size: '20',
|
||||||
|
page: '1',
|
||||||
|
order_by: 'name',
|
||||||
|
}
|
||||||
|
}, {reload: true});
|
||||||
};
|
};
|
||||||
$scope.createGroup = function(){
|
$scope.createGroup = function(){
|
||||||
$state.go('inventoryManage.addGroup');
|
$state.go('inventoryManage.addGroup');
|
||||||
|
|||||||
Reference in New Issue
Block a user