Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream-edit: Avoid hardcoding maxlength for stream description.
jai2201475b44296339
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.jsindex ccf79f4f956..9ea635560a4 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_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 eacd3393407..5ab55205a5b 100644--- a/static/templates/stream_settings/change_stream_info_modal.hbs+++ b/static/templates/stream_settings/change_stream_info_modal.hbs@@ -8,5 +8,5 @@<label for="change_stream_description">{{t 'Description' }}</label>- <textarea id="change_stream_description" maxlength="1000">{{ stream_description }}</textarea>+ <textarea id="change_stream_description" maxlength="{{ max_stream_description_length }}">{{ stream_description }}</textarea></div>