mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Dashboard
Restored called to /config. Turned out not to be the issue. Cleaned up a few minor things.
This commit is contained in:
@@ -16,9 +16,7 @@ angular.module('HostGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
|
|
||||||
var scope = params.scope,
|
var scope = params.scope,
|
||||||
target = params.target,
|
target = params.target,
|
||||||
//dashboard = params.dashboard,
|
html, element, url, license;
|
||||||
|
|
||||||
html, element, url, license, url;
|
|
||||||
|
|
||||||
|
|
||||||
html = "<div class=\"graph-container\">\n";
|
html = "<div class=\"graph-container\">\n";
|
||||||
@@ -34,7 +32,7 @@ angular.module('HostGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
element.html(html);
|
element.html(html);
|
||||||
$compile(element)(scope);
|
$compile(element)(scope);
|
||||||
|
|
||||||
/*url = GetBasePath('config');
|
url = GetBasePath('config');
|
||||||
|
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
Rest.get()
|
Rest.get()
|
||||||
@@ -45,9 +43,7 @@ angular.module('HostGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
||||||
msg: 'Failed to get: ' + url + ' GET returned: ' + status });
|
msg: 'Failed to get: ' + url + ' GET returned: ' + status });
|
||||||
});*/
|
});
|
||||||
|
|
||||||
scope.$emit('licenseCountReady', 10);
|
|
||||||
|
|
||||||
if (scope.removeLicenseCountReady) {
|
if (scope.removeLicenseCountReady) {
|
||||||
scope.removeLicenseCountReady();
|
scope.removeLicenseCountReady();
|
||||||
|
|||||||
@@ -78,8 +78,8 @@ angular.module('JobStatusGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
|
|
||||||
})
|
})
|
||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
//Wait('stWaitop');
|
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
||||||
ProcessErrors(scope, data, status, null, { hdr: 'Error!', msg: 'Failed to get dashboard graph data: ' + status });
|
msg: 'Failed to get: ' + url + ' GET returned: ' + status });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,9 +90,6 @@ angular.module('JobStatusGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
createGraph();
|
createGraph();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (scope.removeGraphDataReady) {
|
if (scope.removeGraphDataReady) {
|
||||||
scope.removeGraphDataReady();
|
scope.removeGraphDataReady();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user