Extract data loading for host count graph

This commit is contained in:
Joe Fiorini
2015-01-27 14:05:36 -05:00
parent 50d9c11419
commit d3a6fac5f9
8 changed files with 191 additions and 40 deletions

View File

@@ -408,11 +408,10 @@ angular.module('Tower', [
templateUrl: urlPrefix + 'partials/home.html',
controller: 'Home',
resolve: {
graphData: function($q, jobStatusGraphData) {
graphData: function($q, jobStatusGraphData, hostCountGraphData) {
return $q.all({
jobStatus: jobStatusGraphData.get("month", "all").then(function(data) {
return data;
})
jobStatus: jobStatusGraphData.get("month", "all"),
hostCounts: hostCountGraphData.get()
});
}
}