mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 07:47:44 -02:30
Consistency fixes
This commit is contained in:
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user