Merge pull request #1999 from jaredevantabor/fix-1927

Fixes URL used for root groups for pagination purposes
This commit is contained in:
Jared Tabor
2018-05-31 14:14:49 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ export default {
} }
else { else {
//reaches here if the user is on the root level group //reaches here if the user is on the root level group
list.basePath = GetBasePath('inventory') + $stateParams.inventory_id + '/root_groups'; list.basePath = GetBasePath('inventory') + $stateParams.inventory_id + '/groups';
} }
let html = generateList.build({ let html = generateList.build({

View File

@@ -52,8 +52,8 @@
var url = GetBasePath('groups') + id + '/children'; var url = GetBasePath('groups') + id + '/children';
return url; return url;
}, },
rootGroupsUrl: function(id){ groupsUrl: function(id){
var url = GetBasePath('inventory') + id+ '/root_groups'; var url = GetBasePath('inventory') + id+ '/groups';
return url; return url;
}, },
inventorySourcesOptions: function(inventoryId) { inventorySourcesOptions: function(inventoryId) {