added title limit when updating team title #1223

This commit is contained in:
daria 2023-08-30 13:36:19 +03:00
parent 608488abab
commit e3f84c0de3

View File

@ -1051,6 +1051,10 @@ define([
var todo = function () {
var newName = $input.val();
if (!newName.trim()) { return; }
Messages.team_nameTooLong = "Team name is too long"; // XXX
if(newName.length > 50){
return UI.warn(Messages.team_nameTooLong);
}
$spinner.show();
APP.module.execCommand('GET_TEAM_METADATA', {
teamId: APP.team