mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
Job detail page refactor
Fixed empty object detection
This commit is contained in:
@@ -453,7 +453,10 @@ function JobDetailController ($scope, $compile, $routeParams, $log, ClearScope,
|
|||||||
};
|
};
|
||||||
|
|
||||||
scope.objectIsEmpty = function(obj) {
|
scope.objectIsEmpty = function(obj) {
|
||||||
return (Object.keys(obj).length > 0) ? false : true;
|
if (angular.isObject(obj)) {
|
||||||
|
return (Object.keys(obj).length > 0) ? false : true;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.HostDetailOnTotalScroll = _.debounce(function() {
|
scope.HostDetailOnTotalScroll = _.debounce(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user