Make sure the team add UI handles the no mailing case as well
This commit is contained in:
parent
f3b03ebc34
commit
3a356c6aab
3 changed files with 4 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
auto-clear="true"
|
auto-clear="true"
|
||||||
allowed-entities="['user', 'robot']"
|
allowed-entities="['user', 'robot']"
|
||||||
pull-right="true"
|
pull-right="true"
|
||||||
allow-emails="true"
|
allow-emails="allowEmail"
|
||||||
email-message="Press enter to invite the entered e-mail address to this team"
|
email-message="Press enter to invite the entered e-mail address to this team"
|
||||||
ng-show="!addingMember"></div>
|
ng-show="!addingMember"></div>
|
||||||
<div class="quay-spinner" ng-show="addingMember"></div>
|
<div class="quay-spinner" ng-show="addingMember"></div>
|
||||||
|
|
|
@ -3951,7 +3951,7 @@ quayApp.directive('entitySearch', function () {
|
||||||
'clearValue': '=clearValue',
|
'clearValue': '=clearValue',
|
||||||
|
|
||||||
// Whether e-mail addresses are allowed.
|
// Whether e-mail addresses are allowed.
|
||||||
'allowEmails': '@allowEmails',
|
'allowEmails': '=allowEmails',
|
||||||
'emailMessage': '@emailMessage',
|
'emailMessage': '@emailMessage',
|
||||||
|
|
||||||
// True if the menu should pull right.
|
// True if the menu should pull right.
|
||||||
|
|
|
@ -2283,7 +2283,7 @@ function OrgAdminCtrl($rootScope, $scope, $timeout, Restangular, $routeParams, U
|
||||||
loadOrganization();
|
loadOrganization();
|
||||||
}
|
}
|
||||||
|
|
||||||
function TeamViewCtrl($rootScope, $scope, $timeout, Restangular, ApiService, $routeParams) {
|
function TeamViewCtrl($rootScope, $scope, $timeout, Features, Restangular, ApiService, $routeParams) {
|
||||||
var teamname = $routeParams.teamname;
|
var teamname = $routeParams.teamname;
|
||||||
var orgname = $routeParams.orgname;
|
var orgname = $routeParams.orgname;
|
||||||
|
|
||||||
|
@ -2291,6 +2291,7 @@ function TeamViewCtrl($rootScope, $scope, $timeout, Restangular, ApiService, $ro
|
||||||
$scope.teamname = teamname;
|
$scope.teamname = teamname;
|
||||||
$scope.addingMember = false;
|
$scope.addingMember = false;
|
||||||
$scope.memberMap = null;
|
$scope.memberMap = null;
|
||||||
|
$scope.allowEmail = Features.MAILING;
|
||||||
|
|
||||||
$rootScope.title = 'Loading...';
|
$rootScope.title = 'Loading...';
|
||||||
|
|
||||||
|
|
Reference in a new issue