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
|
@ -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>
|
||||
|
||||
|
|
Reference in a new issue