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
commit e2d3a7be26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ export default {
}
else {
//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({

View File

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