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