Merge pull request #2528 from jaredevantabor/session

Prevent dashboard services until user logs in
This commit is contained in:
Jared Tabor 2016-06-20 14:40:26 -07:00 committed by GitHub
commit 07e42ea988

View File

@ -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"),
});
});
}]
}