mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Consistency fixes
This commit is contained in:
parent
6b509e2814
commit
2814300e1e
@ -32,7 +32,6 @@ angular.module('DashboardGraphs').
|
||||
|
||||
|
||||
function createGraph(data, license) {
|
||||
|
||||
//url = getBasePath('dashboard')+'graphs/';
|
||||
var graphData = [
|
||||
{
|
||||
|
||||
@ -12,7 +12,7 @@ angular.module('DashboardGraphs')
|
||||
|
||||
scope.$watch(attr.data, function(data) {
|
||||
if (data && data.hosts) {
|
||||
buildGraph(data);
|
||||
createGraph(data);
|
||||
}
|
||||
});
|
||||
|
||||
@ -40,7 +40,7 @@ angular.module('DashboardGraphs')
|
||||
angular.element($window).off('resize', adjustGraphSize);
|
||||
});
|
||||
|
||||
function buildGraph(data) {
|
||||
function createGraph(data) {
|
||||
if(data.hosts.total+data.hosts.failed>0){
|
||||
data = [
|
||||
{
|
||||
|
||||
@ -31,7 +31,7 @@ function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope, $q) {
|
||||
hdr: 'Error!',
|
||||
msg: errorMessage
|
||||
});
|
||||
return response;
|
||||
return response;
|
||||
});
|
||||
|
||||
return pluck('data', result);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user