Make the org and user views more performant by only loading teams and robots when requested, making some loads async, and skipping others entirely on mobile

This commit is contained in:
Joseph Schorr 2015-04-21 16:07:24 -04:00
parent 738c3efc4d
commit afa59da8d6
10 changed files with 52 additions and 18 deletions

View file

@ -19,6 +19,8 @@
$scope.showLogsCounter = 0;
$scope.showApplicationsCounter = 0;
$scope.showInvoicesCounter = 0;
$scope.showRobotsCounter = 0;
$scope.showTeamsCounter = 0;
$scope.orgScope = {
'changingOrganization': false,
@ -57,6 +59,14 @@
// Load the organization.
loadOrganization();
$scope.showRobots = function() {
$scope.showRobotsCounter++;
};
$scope.showTeams = function() {
$scope.showTeamsCounter++;
};
$scope.showInvoices = function() {
$scope.showInvoicesCounter++;
};