mirror of https://github.com/portainer/portainer
fix(teams): remove name sanitization when creating a team (#2619)
parent
dedc02cc8d
commit
bed49c37e4
|
@ -1,6 +1,6 @@
|
|||
angular.module('portainer.app')
|
||||
.controller('TeamsController', ['$q', '$scope', '$state', '$sanitize', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
|
||||
function ($q, $scope, $state, $sanitize, TeamService, UserService, ModalService, Notifications, Authentication) {
|
||||
.controller('TeamsController', ['$q', '$scope', '$state', 'TeamService', 'UserService', 'ModalService', 'Notifications', 'Authentication',
|
||||
function ($q, $scope, $state, TeamService, UserService, ModalService, Notifications, Authentication) {
|
||||
$scope.state = {
|
||||
actionInProgress: false
|
||||
};
|
||||
|
@ -22,7 +22,7 @@ function ($q, $scope, $state, $sanitize, TeamService, UserService, ModalService,
|
|||
};
|
||||
|
||||
$scope.addTeam = function() {
|
||||
var teamName = $sanitize($scope.formValues.Name);
|
||||
var teamName = $scope.formValues.Name;
|
||||
var leaderIds = [];
|
||||
angular.forEach($scope.formValues.Leaders, function(user) {
|
||||
leaderIds.push(user.Id);
|
||||
|
|
Loading…
Reference in New Issue