Dashboard

Restored called to /config. Turned out not to be the issue. Cleaned up a few minor things.
This commit is contained in:
Chris Houseknecht 2014-07-07 18:52:44 -04:00
parent b0f4d0452d
commit 125be34b43
2 changed files with 5 additions and 12 deletions

View File

@ -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();

View File

@ -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();
}