mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
settings: Disable spectator access setting when server setting is False.
We disable the enable_spectator_access setting when the server level setting, WEB_PUBLIC_STREAMS_ENABLED setting is set to False. This commit adds a new argument is_disabled to settings_checkbox which is used to disable the checkbox and set the color of label accordingly. This commit also adds a help-link besides the label pointing to "/help/web-public-streams" which is shown irrespective of the setting being enabled or disabled. Fixes #20417.
This commit is contained in:
@@ -160,6 +160,7 @@ export function build_page() {
|
||||
twenty_four_hour_time_values: settings_config.twenty_four_hour_time_values,
|
||||
create_web_public_stream_policy_values:
|
||||
settings_config.create_web_public_stream_policy_values,
|
||||
disable_enable_spectator_access_setting: !page_params.server_web_public_streams_enabled,
|
||||
};
|
||||
|
||||
if (options.realm_logo_source !== "D" && options.realm_night_logo_source === "D") {
|
||||
|
||||
Reference in New Issue
Block a user