mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
added title limit when updating team title #1223
This commit is contained in:
parent
608488abab
commit
e3f84c0de3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user