diff --git a/src/js/main.js b/src/js/main.js index 3771ab7cb..7b1146a1b 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -154,10 +154,11 @@ angular.module('Application').controller('MainController', ['$scope', '$route', console.log('Running dashboard version ', localStorage.version); - Client.refreshConfig(function (error) { + // get user profile as the first thing. this populates the "scope" and affects subsequent API calls + Client.refreshUserInfo(function (error) { if (error) return $scope.error(error); - Client.refreshUserInfo(function (error) { + Client.refreshConfig(function (error) { if (error) return $scope.error(error); Client.refreshInstalledApps(function (error) {