From bc9289c5a57ce10a3c35cf9553abf0f4ee09c17a Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 20 Jun 2016 13:08:42 -0700 Subject: [PATCH] Prevent dashboard resolve from sending GET requests until after user logs in --- awx/ui/client/src/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 845e5ea5c5..1816888ce8 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -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"), + }); }); }] }