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:
YJDave
2017-12-20 22:28:49 +05:30
committed by showell
parent 2ca0fb4128
commit 15dd94035c
8 changed files with 23 additions and 4 deletions

View File

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