mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
user-groups: Define max_user_group_name_length in user_groups.ts.
"max_user_group_name_length" is now defined in user_groups.ts instead of user_group_edit.ts because we would use that value in further commits in user_group_create.ts and importing it from user_group_edit.ts would result in import cycle.
This commit is contained in:
@@ -41,6 +41,11 @@ export function init(): void {
|
||||
// WE INITIALIZE DATA STRUCTURES HERE!
|
||||
init();
|
||||
|
||||
// Ideally this should be included in page params.
|
||||
// Like we have realm.max_stream_name_length` and
|
||||
// `realm.max_stream_description_length` for streams.
|
||||
export const max_user_group_name_length = 100;
|
||||
|
||||
export function add(user_group_raw: UserGroupRaw): UserGroup {
|
||||
// Reformat the user group members structure to be a set.
|
||||
const user_group = {
|
||||
|
||||
Reference in New Issue
Block a user