Switch to using the UserService’s cache of org information for whether a user is an admin of a namespace/org (#2)
This commit is contained in:
parent
df1500b6d0
commit
3302b58cc3
3 changed files with 17 additions and 16 deletions
|
@ -14,7 +14,7 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="divider" ng-show="includeTeams && !lazyLoading && teams && isAdmin"></li>
|
||||
<li role="presentation" class="divider" ng-show="!lazyLoading && teams && (isAdmin || robots)"></li>
|
||||
|
||||
<li role="presentation" ng-repeat="robot in robots" ng-show="!lazyLoading">
|
||||
<a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-click="setEntity(robot.name, 'user', true)">
|
||||
|
@ -22,7 +22,8 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li role="presentation" class="divider" ng-show="!lazyLoading && robots"></li>
|
||||
<li role="presentation" class="divider" ng-show="!lazyLoading && robots && isAdmin"></li>
|
||||
|
||||
<li role="presentation" ng-show="includeTeams && isOrganization && !lazyLoading && isAdmin">
|
||||
<a role="menuitem" class="new-action" tabindex="-1" href="javascript:void(0)" ng-click="createTeam()">
|
||||
<i class="fa fa-group"></i> Create team
|
||||
|
|
Reference in a new issue