Finish work on the new role group and make sure it only appears when the new layout is enabled

This commit is contained in:
Joseph Schorr 2015-04-21 12:02:59 -04:00
parent a4cacd7307
commit 54097c351e
9 changed files with 58 additions and 32 deletions

View file

@ -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; }