mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
org settings: Handle NEW_USER_BOT not being set.
If NEW_USER_BOT is not configured in organization, then disable setting for selecting stream for new user notification.
This commit is contained in:
@@ -50,6 +50,7 @@ function _setup_page() {
|
||||
realm_message_retention_days: page_params.realm_message_retention_days,
|
||||
realm_allow_edit_history: page_params.realm_allow_edit_history,
|
||||
language_list: page_params.language_list,
|
||||
new_user_bot_configured: page_params.new_user_bot_configured,
|
||||
realm_default_language: page_params.realm_default_language,
|
||||
realm_waiting_period_threshold: page_params.realm_waiting_period_threshold,
|
||||
realm_notifications_stream_id: page_params.realm_notifications_stream_id,
|
||||
|
||||
@@ -198,7 +198,7 @@ exports.render_signup_notifications_stream_ui = function (stream_id) {
|
||||
|
||||
var name = stream_data.maybe_get_stream_name(stream_id);
|
||||
|
||||
if (!name) {
|
||||
if (!name || !page_params.new_user_bot_configured) {
|
||||
elem.text(i18n.t("Disabled"));
|
||||
elem.addClass("text-warning");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user