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:
parent
738c3efc4d
commit
afa59da8d6
10 changed files with 52 additions and 18 deletions
|
@ -55,7 +55,7 @@
|
|||
|
||||
<!-- Robot accounts tab -->
|
||||
<div id="robots" class="tab-pane">
|
||||
<div class="robots-manager" organization="organization"></div>
|
||||
<div class="robots-manager" organization="organization" is-enabled="true"></div>
|
||||
</div>
|
||||
|
||||
<!-- Prototypes tab -->
|
||||
|
|
|
@ -24,10 +24,11 @@
|
|||
<span class="cor-tab" tab-active="true" tab-title="Repositories" tab-target="#repos">
|
||||
<i class="fa fa-hdd-o"></i>
|
||||
</span>
|
||||
<span class="cor-tab" tab-title="Teams" tab-target="#teams">
|
||||
<span class="cor-tab" tab-title="Teams" tab-target="#teams" tab-init="showTeams()">
|
||||
<i class="fa fa-users"></i>
|
||||
</span>
|
||||
<span class="cor-tab" tab-title="Robot Accounts" tab-target="#robots" ng-show="isAdmin">
|
||||
<span class="cor-tab" tab-title="Robot Accounts" tab-target="#robots" tab-init="showRobots()"
|
||||
ng-show="isAdmin">
|
||||
<i class="fa fa-wrench"></i>
|
||||
</span>
|
||||
<span class="cor-tab" tab-title="Default Permissions" tab-target="#default" ng-show="isAdmin">
|
||||
|
@ -70,14 +71,14 @@
|
|||
<!-- Teams -->
|
||||
<div id="teams" class="tab-pane">
|
||||
<div ng-if="!user.anonymous">
|
||||
<div class="teams-manager" organization="organization"></div>
|
||||
<div class="teams-manager" organization="organization" is-enabled="showTeamsCounter"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Robot Accounts -->
|
||||
<div id="robots" class="tab-pane">
|
||||
<div ng-if="isAdmin">
|
||||
<div class="robots-manager" organization="organization"></div>
|
||||
<div class="robots-manager" organization="organization" is-enabled="showRobotsCounter"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@
|
|||
|
||||
<!-- Robot accounts tab -->
|
||||
<div id="robots" class="tab-pane">
|
||||
<div class="robots-manager" user="user"></div>
|
||||
<div class="robots-manager" user="user" is-enabled="true"></div>
|
||||
</div>
|
||||
|
||||
<!-- Billing options tab -->
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<span class="cor-tab" tab-active="true" tab-title="Repositories" tab-target="#repos">
|
||||
<i class="fa fa-hdd-o"></i>
|
||||
</span>
|
||||
<span class="cor-tab" tab-title="Robot Accounts" tab-target="#robots">
|
||||
<span class="cor-tab" tab-title="Robot Accounts" tab-init="showRobots()" tab-target="#robots">
|
||||
<i class="fa fa-wrench"></i>
|
||||
</span>
|
||||
<span class="cor-tab" tab-title="User Settings" tab-target="#settings">
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
<!-- Robot Accounts -->
|
||||
<div id="robots" class="tab-pane">
|
||||
<div class="robots-manager" user="viewuser"></div>
|
||||
<div class="robots-manager" user="viewuser" is-enabled="showRobotsCounter"></div>
|
||||
</div>
|
||||
|
||||
<!-- External Logins -->
|
||||
|
|
Reference in a new issue