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