mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
fixed the null error for the org add user breadcrumbs
This commit is contained in:
@@ -303,6 +303,7 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
child = child.charAt(0).toUpperCase() + child.slice(1);
|
child = child.charAt(0).toUpperCase() + child.slice(1);
|
||||||
// find the correct title
|
// find the correct title
|
||||||
found = false;
|
found = false;
|
||||||
|
if ($rootScope.crumbCache) {
|
||||||
for (j = 0; j < $rootScope.crumbCache.length; j++) {
|
for (j = 0; j < $rootScope.crumbCache.length; j++) {
|
||||||
if ($rootScope.crumbCache[j].path === '/' + parent + '/' + paths[i]) {
|
if ($rootScope.crumbCache[j].path === '/' + parent + '/' + paths[i]) {
|
||||||
child = $rootScope.crumbCache[j].title;
|
child = $rootScope.crumbCache[j].title;
|
||||||
@@ -323,6 +324,8 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
path: ppath + '/' + paths[i]
|
path: ppath + '/' + paths[i]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//if (/_/.test(paths[i])) {
|
//if (/_/.test(paths[i])) {
|
||||||
// replace '_' with space and uppercase each word
|
// replace '_' with space and uppercase each word
|
||||||
|
|||||||
Reference in New Issue
Block a user