mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-01 04:11:56 -05:00
Extract data loading for host count graph
This commit is contained in:
@@ -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()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user