mirror of https://github.com/zulip/zulip.git
org settings: Fix discard changes for realm_create_stream_permission.
On discarding changes made for `realm_create_stream_permission` always "by_admin_user_with_custom_time" get selected because `create_stream_by_admins_only` isn't a valid page_param.
This commit is contained in:
parent
ce156dd21d
commit
f17fa3305b
|
@ -423,7 +423,7 @@ function _set_up() {
|
|||
if (property_name === 'realm_message_content_edit_limit_minutes') {
|
||||
return Math.ceil(page_params.realm_message_content_edit_limit_seconds / 60).toString();
|
||||
} else if (property_name === 'realm_create_stream_permission') {
|
||||
if (page_params.create_stream_by_admins_only) {
|
||||
if (page_params.realm_create_stream_by_admins_only) {
|
||||
return "by_admins_only";
|
||||
}
|
||||
if (page_params.realm_waiting_period_threshold === 0) {
|
||||
|
|
Loading…
Reference in New Issue