mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02: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 = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user