Finish work on the new role group and make sure it only appears when the new layout is enabled
This commit is contained in:
parent
a4cacd7307
commit
54097c351e
9 changed files with 58 additions and 32 deletions
|
@ -122,14 +122,16 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Mobile add permissions -->
|
||||
<div class="mobile-add-row" ng-if-media="'(max-width: 767px)'">
|
||||
<span class="entity-search" namespace="repository.namespace"
|
||||
placeholder="'Select a ' + (repository.is_organization ? 'team or ' : '') + 'user...'"
|
||||
current-entity="addPermissionInfo.entity"></span>
|
||||
current-entity="addPermissionInfo.entity"
|
||||
pull-right="true"></span>
|
||||
<span class="role-group" current-role="addPermissionInfo.role"
|
||||
roles="repoRoles"
|
||||
role-changed="addPermissionInfo.role = role"></span>
|
||||
<button class="btn btn-success" style="margin-left: 10px"
|
||||
<button class="btn btn-success add-button"
|
||||
ng-disabled="!addPermissionInfo.role || !addPermissionInfo.entity"
|
||||
ng-click="addPermission()">
|
||||
Add Permission
|
||||
|
|
Reference in a new issue