Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_create: Move `Add all users` beside `Choose subscribers`.
Shubham Padiae539d2226baf
diff --git a/web/src/stream_create.js b/web/src/stream_create.jsindex f86fb7ce65f..5db677f4fec 100644--- a/web/src/stream_create.js+++ b/web/src/stream_create.js@@ -449,8 +449,8 @@ export function set_up_handlers() {settings_data.user_can_create_public_streams() ||settings_data.user_can_create_web_public_streams();- const $people_to_add_holder = $("#people_to_add").expectOne();- stream_create_subscribers.create_handlers($people_to_add_holder);+ const $subscribers_container = $(".subscribers_container").expectOne();+ stream_create_subscribers.create_handlers($subscribers_container);const $container = $("#stream-creation").expectOne();diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex d6d529fb214..5be70f4f80f 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -257,6 +257,10 @@ h4.user_group_setting_subsection_title {padding-left: 5px;}+.choose-subscribers-label {+ display: inline;+}+.remove-subscriber-form {margin: 0;}@@ -740,9 +744,14 @@ h4.user_group_setting_subsection_title {}}- .add_all_users_to_user_group,+ .add_all_users_to_user_group {+ margin-left: 10px;+ }+.add_all_users_to_stream {margin-left: 10px;+ /* same bottom margin as h4.stream_setting_subsection_title */+ margin-bottom: 5px;}.create_user_group_member_list_header,diff --git a/web/templates/stream_settings/new_stream_users.hbs b/web/templates/stream_settings/new_stream_users.hbsindex 0ff15ad0fdd..e6095bb105a 100644--- a/web/templates/stream_settings/new_stream_users.hbs+++ b/web/templates/stream_settings/new_stream_users.hbs@@ -3,12 +3,6 @@{{> add_subscribers_form hide_add_button=true}}</div><br />--- {{t "Do you want to add everyone?"}}- <span class="add_all_users_to_stream_btn_container">- <button class="add_all_users_to_stream small button rounded sea-green">{{t 'Add all users'}}</button>- </span></div><div class="create_stream_subscriber_list_header">diff --git a/web/templates/stream_settings/stream_creation_form.hbs b/web/templates/stream_settings/stream_creation_form.hbsindex b2564c89e7a..fed36be5fdc 100644--- a/web/templates/stream_settings/stream_creation_form.hbs+++ b/web/templates/stream_settings/stream_creation_form.hbs@@ -33,9 +33,12 @@</div><div class="subscribers_container stream_creation_container"><section class="block stream_create_add_subscriber_container">- <label for="people_to_add">+ <label class="choose-subscribers-label" for="people_to_add"><h4 class="stream_setting_subsection_title">{{t "Choose subscribers" }}</h4></label>+ <span class="add_all_users_to_stream_btn_container">+ <button class="add_all_users_to_stream small button rounded sea-green">{{t 'Add all users'}}</button>+ </span><div id="stream_subscription_error" class="stream_creation_error"></div><div class="controls" id="people_to_add"></div></section>