Add messaging when trying to create a team that already exists
Fixes https://jira.coreos.com/browse/QUAY-827
This commit is contained in:
parent
33b7ca0eaa
commit
72ca758c88
4 changed files with 16 additions and 4 deletions
|
@ -35,6 +35,11 @@ angular.module('quay').directive('createTeamDialog', function () {
|
|||
});
|
||||
|
||||
ApiService.updateOrganizationTeam(data, params).then(function(resp) {
|
||||
if (!resp.new_team) {
|
||||
callback(null);
|
||||
bootbox.alert('Team with name "' + resp.name + '" already exists')
|
||||
return;
|
||||
}
|
||||
callback(resp);
|
||||
}, errorDisplay);
|
||||
};
|
||||
|
|
Reference in a new issue