mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Prevent dashboard resolve from sending GET requests until after user logs in
This commit is contained in:
@@ -247,9 +247,12 @@ var tower = angular.module('Tower', [
|
|||||||
label: "DASHBOARD"
|
label: "DASHBOARD"
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
graphData: ['$q', 'jobStatusGraphData', function($q, jobStatusGraphData) {
|
graphData: ['$q', 'jobStatusGraphData', '$rootScope',
|
||||||
return $q.all({
|
function($q, jobStatusGraphData, $rootScope) {
|
||||||
jobStatus: jobStatusGraphData.get("month", "all"),
|
return $rootScope.featuresConfigured.promise.then(function () {
|
||||||
|
return $q.all({
|
||||||
|
jobStatus: jobStatusGraphData.get("month", "all"),
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user