parent
b5efc57655
commit
391d70d9ec
18 changed files with 496 additions and 224 deletions
|
@ -22,7 +22,7 @@ angular.module('quay').directive('createEntityDialog', function () {
|
|||
|
||||
controller: function($scope, $element, ApiService, UIService, UserService) {
|
||||
$scope.context = {
|
||||
'addPermissionsCounter': 0
|
||||
'setPermissionsCounter': 0
|
||||
};
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
|
@ -71,17 +71,17 @@ angular.module('quay').directive('createEntityDialog', function () {
|
|||
});
|
||||
};
|
||||
|
||||
$scope.permissionsAdded = function(repositories) {
|
||||
$scope.permissionsSet = function(repositories) {
|
||||
$scope.entity['repo_count'] = repositories.length;
|
||||
$scope.hide();
|
||||
};
|
||||
|
||||
$scope.addingPermissions = function() {
|
||||
$scope.view = 'addingperms';
|
||||
$scope.settingPermissions = function() {
|
||||
$scope.view = 'settingperms';
|
||||
};
|
||||
|
||||
$scope.addPermissions = function() {
|
||||
$scope.context.addPermissionsCounter++;
|
||||
$scope.setPermissions = function() {
|
||||
$scope.context.setPermissionsCounter++;
|
||||
};
|
||||
|
||||
$scope.repositoriesLoaded = function(repositories) {
|
||||
|
@ -90,7 +90,7 @@ angular.module('quay').directive('createEntityDialog', function () {
|
|||
return;
|
||||
}
|
||||
|
||||
$scope.view = 'addperms';
|
||||
$scope.view = 'setperms';
|
||||
};
|
||||
|
||||
$scope.$watch('entityNameRegex', function(r) {
|
||||
|
|
Reference in a new issue