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

View File

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