stream-edit: Avoid hardcoding maxlength for stream description.

This commit is contained in:
jai2201
2022-07-15 05:38:53 +05:30
committed by Tim Abbott
parent 51f2a7f5f4
commit 475b442963
2 changed files with 2 additions and 1 deletions

View File

@@ -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);

View File

@@ -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>