Add messaging when trying to create a team that already exists

Fixes https://jira.coreos.com/browse/QUAY-827
This commit is contained in:
Joseph Schorr 2018-02-15 16:03:09 -05:00
parent 33b7ca0eaa
commit 72ca758c88
4 changed files with 16 additions and 4 deletions

View file

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