Skip to content

Commit

Permalink
stream-edit: Restrict users to maxlength in input for Stream name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jai2201 authored and timabbott committed Jul 15, 2022
1 parent 475b442 commit 96be667
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions static/js/stream_edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 96be667

Please sign in to comment.