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