Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream-edit: Restrict users to maxlength in input for `Stream name`.
jai220196be6678e471
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex 9ea635560a4..00d760dc049 100644--- a/static/js/stream_edit.js+++ b/static/js/stream_edit.js@@ -498,6 +498,7 @@ export function initialize() {upgrade_text_for_wide_organization_logo:page_params.upgrade_text_for_wide_organization_logo,is_stream_edit: true,+ max_stream_name_length: page_params.max_stream_name_length,max_stream_description_length: page_params.max_stream_description_length,};const change_privacy_modal = render_stream_types(template_data);diff --git a/static/templates/stream_settings/change_stream_info_modal.hbs b/static/templates/stream_settings/change_stream_info_modal.hbsindex 5ab55205a5b..9c08c6e285d 100644--- a/static/templates/stream_settings/change_stream_info_modal.hbs+++ b/static/templates/stream_settings/change_stream_info_modal.hbs@@ -2,7 +2,7 @@<label for="change_stream_name">{{t 'Stream name' }}</label>- <input type="text" id="change_stream_name" value="{{ stream_name }}" />+ <input type="text" id="change_stream_name" value="{{ stream_name }}" maxlength="{{ max_stream_name_length }}" /></div><div><label for="change_stream_description">