Consistency fixes

This commit is contained in:
Joe Fiorini 2015-01-29 16:41:43 -05:00
parent 6b509e2814
commit 2814300e1e
3 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,6 @@ angular.module('DashboardGraphs').
function createGraph(data, license) {
//url = getBasePath('dashboard')+'graphs/';
var graphData = [
{

View File

@ -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 = [
{

View File

@ -31,7 +31,7 @@ function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope, $q) {
hdr: 'Error!',
msg: errorMessage
});
return response;
return response;
});
return pluck('data', result);