mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
make org related lists searchable on the correct base
This commit is contained in:
parent
1bedc5dacc
commit
18e3552c86
@ -71,9 +71,9 @@ export default ['$compile', '$scope', '$stateParams', '$state', 'Rest', 'UserLis
|
||||
var listMode = (mode === 'admins') ? 'users' : mode;
|
||||
|
||||
list = getList(mode);
|
||||
list.listTitle = listTitle;
|
||||
|
||||
url = getUrl(mode, data);
|
||||
list.listTitle = listTitle;
|
||||
list.basePath = url;
|
||||
|
||||
$scope.orgRelatedUrls = data.related;
|
||||
|
||||
|
||||
@ -31,7 +31,11 @@ export default ['GetBasePath', function(GetBasePath) {
|
||||
if (endPoint === 'inventories') {
|
||||
endPoint = 'inventory';
|
||||
}
|
||||
return GetBasePath(endPoint);
|
||||
if (endPoint.indexOf("/api/v1") > -1) {
|
||||
return endPoint;
|
||||
} else {
|
||||
return GetBasePath(endPoint);
|
||||
}
|
||||
};
|
||||
|
||||
// inject the directive with the list and endpoint
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user