mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 02:17:37 -02:30
make org related lists searchable on the correct base
This commit is contained in:
@@ -71,9 +71,9 @@ export default ['$compile', '$scope', '$stateParams', '$state', 'Rest', 'UserLis
|
|||||||
var listMode = (mode === 'admins') ? 'users' : mode;
|
var listMode = (mode === 'admins') ? 'users' : mode;
|
||||||
|
|
||||||
list = getList(mode);
|
list = getList(mode);
|
||||||
list.listTitle = listTitle;
|
|
||||||
|
|
||||||
url = getUrl(mode, data);
|
url = getUrl(mode, data);
|
||||||
|
list.listTitle = listTitle;
|
||||||
|
list.basePath = url;
|
||||||
|
|
||||||
$scope.orgRelatedUrls = data.related;
|
$scope.orgRelatedUrls = data.related;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,11 @@ export default ['GetBasePath', function(GetBasePath) {
|
|||||||
if (endPoint === 'inventories') {
|
if (endPoint === 'inventories') {
|
||||||
endPoint = 'inventory';
|
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
|
// inject the directive with the list and endpoint
|
||||||
|
|||||||
Reference in New Issue
Block a user