diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js index a0667da58a..6c18598dfd 100644 --- a/static/js/stream_edit.js +++ b/static/js/stream_edit.js @@ -68,9 +68,6 @@ exports.hide_sub_settings = function (sub) { $settings.find(".regular_subscription_settings").removeClass('in'); // Clear email address widget $settings.find(".email-address").html(""); - if (!sub.can_change_stream_permissions) { - $settings.find(".change-stream-privacy").hide(); - } }; exports.show_sub_settings = function (sub) { diff --git a/static/js/subs.js b/static/js/subs.js index a54e8ab27d..b15373c0bc 100644 --- a/static/js/subs.js +++ b/static/js/subs.js @@ -348,6 +348,9 @@ exports.update_settings_for_unsubscribed = function (sub) { exports.rerender_subscriptions_settings(sub); stream_ui_updates.update_check_button_for_sub(sub); stream_ui_updates.update_settings_button_for_sub(sub); + if (!sub.can_change_stream_permissions) { + $(".change-stream-privacy").hide(); + } stream_data.update_stream_email_address(sub, ""); if (stream_edit.is_sub_settings_active(sub)) {