Make sure the team add UI handles the no mailing case as well

This commit is contained in:
Joseph Schorr 2014-09-23 11:19:50 -04:00
parent f3b03ebc34
commit 3a356c6aab
3 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@
auto-clear="true"
allowed-entities="['user', 'robot']"
pull-right="true"
allow-emails="true"
allow-emails="allowEmail"
email-message="Press enter to invite the entered e-mail address to this team"
ng-show="!addingMember"></div>
<div class="quay-spinner" ng-show="addingMember"></div>

View file

@ -3951,7 +3951,7 @@ quayApp.directive('entitySearch', function () {
'clearValue': '=clearValue',
// Whether e-mail addresses are allowed.
'allowEmails': '@allowEmails',
'allowEmails': '=allowEmails',
'emailMessage': '@emailMessage',
// True if the menu should pull right.

View file

@ -2283,7 +2283,7 @@ function OrgAdminCtrl($rootScope, $scope, $timeout, Restangular, $routeParams, U
loadOrganization();
}
function TeamViewCtrl($rootScope, $scope, $timeout, Restangular, ApiService, $routeParams) {
function TeamViewCtrl($rootScope, $scope, $timeout, Features, Restangular, ApiService, $routeParams) {
var teamname = $routeParams.teamname;
var orgname = $routeParams.orgname;
@ -2291,6 +2291,7 @@ function TeamViewCtrl($rootScope, $scope, $timeout, Restangular, ApiService, $ro
$scope.teamname = teamname;
$scope.addingMember = false;
$scope.memberMap = null;
$scope.allowEmail = Features.MAILING;
$rootScope.title = 'Loading...';