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
|
@ -13,10 +13,12 @@ angular.module('quay').directive('roleGroup', function () {
|
|||
'roles': '@roles',
|
||||
'currentRole': '=currentRole',
|
||||
'readOnly': '=readOnly',
|
||||
'roleChanged': '&roleChanged'
|
||||
'roleChanged': '&roleChanged',
|
||||
'pullLeft': '@pullLeft'
|
||||
},
|
||||
controller: function($scope, $element, RolesService) {
|
||||
controller: function($scope, $element, RolesService, Config) {
|
||||
$scope.fullRoles = RolesService[$scope.roles];
|
||||
$scope.Config = Config;
|
||||
|
||||
$scope.setRole = function(role) {
|
||||
if ($scope.currentRole == role) { return; }
|
||||
|
|
Reference in a new issue