From 8c1ed7359fd55414b9322c20273f3e59b4e315ec Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 2 Mar 2022 12:42:33 +0000 Subject: [PATCH] manage streams: Promote "Announce stream" in UI. The option to announce streams is tied to whether it's public or not, so it makes sense to move it here. --- static/js/stream_edit.js | 1 + static/js/stream_settings_ui.js | 1 + .../stream_settings/stream_creation_form.hbs | 9 --------- static/templates/stream_settings/stream_types.hbs | 11 +++++++++++ 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js index 17180d7750..04b6f7813a 100644 --- a/static/js/stream_edit.js +++ b/static/js/stream_edit.js @@ -478,6 +478,7 @@ export function initialize() { const stream = sub_store.get(stream_id); const template_data = { + ask_to_announce_stream: false, stream_privacy_policy_values: stream_data.stream_privacy_policy_values, stream_privacy_policy: stream_data.get_stream_privacy_policy(stream_id), stream_post_policy_values: stream_data.stream_post_policy_values, diff --git a/static/js/stream_settings_ui.js b/static/js/stream_settings_ui.js index 0603a2c97c..7093362448 100644 --- a/static/js/stream_settings_ui.js +++ b/static/js/stream_settings_ui.js @@ -621,6 +621,7 @@ export function setup_page(callback) { // the user can create, by showing other options as disabled. const stream_privacy_policy = stream_data.stream_privacy_policy_values.public.code; const template_data = { + ask_to_announce_stream: true, can_create_streams: settings_data.user_can_create_private_streams() || settings_data.user_can_create_public_streams() || diff --git a/static/templates/stream_settings/stream_creation_form.hbs b/static/templates/stream_settings/stream_creation_form.hbs index 5a59526155..6da1a0bd67 100644 --- a/static/templates/stream_settings/stream_creation_form.hbs +++ b/static/templates/stream_settings/stream_creation_form.hbs @@ -35,15 +35,6 @@ stream_post_policy=stream_post_policy_values.everyone.code is_stream_edit=false }} - -
- - -