mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
channels: Remove Add all users button from channel creation screen.
This commit is contained in:
committed by
Tim Abbott
parent
81ba1bcb61
commit
b2108404e7
@@ -30,10 +30,6 @@ function add_user_ids(user_ids: number[]): void {
|
||||
redraw_subscriber_list();
|
||||
}
|
||||
|
||||
function add_all_users(): void {
|
||||
add_subscribers_pill.append_user_group_from_name("role:everyone", pill_widget!);
|
||||
}
|
||||
|
||||
function soft_remove_user_id(user_id: number): void {
|
||||
stream_create_subscribers_data.soft_remove_user_id(user_id);
|
||||
redraw_subscriber_list();
|
||||
@@ -72,12 +68,6 @@ function build_pill_widget({
|
||||
}
|
||||
|
||||
export function create_handlers($container: JQuery): void {
|
||||
$container.on("click", ".add_all_users_to_stream", (e) => {
|
||||
e.preventDefault();
|
||||
add_all_users();
|
||||
$(".add-user-list-filter").trigger("focus");
|
||||
});
|
||||
|
||||
$container.on("click", ".remove_potential_subscriber", function (this: HTMLElement, e) {
|
||||
e.preventDefault();
|
||||
const $subscriber_row = $(this).closest(".settings-subscriber-row");
|
||||
|
||||
@@ -501,20 +501,7 @@ export function enable_or_disable_add_subscribers_elements(
|
||||
$container_elem.find(".add_subscribers_container").addClass("add_subscribers_disabled");
|
||||
}
|
||||
|
||||
if (stream_creation) {
|
||||
const $subscribe_all_users_button = $container_elem.find("button.add_all_users_to_stream");
|
||||
$subscribe_all_users_button.prop("disabled", !enable_elem);
|
||||
|
||||
if (enable_elem) {
|
||||
$container_elem
|
||||
.find(".add_all_users_to_stream_button_container")
|
||||
.removeClass("add_subscribers_disabled");
|
||||
} else {
|
||||
$container_elem
|
||||
.find(".add_all_users_to_stream_button_container")
|
||||
.addClass("add_subscribers_disabled");
|
||||
}
|
||||
} else {
|
||||
if (!stream_creation) {
|
||||
const $add_subscribers_button = $container_elem.find(".add-subscriber-button").expectOne();
|
||||
$add_subscribers_button.prop("disabled", !enable_elem);
|
||||
if (enable_elem) {
|
||||
|
||||
@@ -971,12 +971,6 @@ h4.user_group_setting_subsection_title {
|
||||
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,
|
||||
.create_stream_subscriber_list_header {
|
||||
margin-top: 10px;
|
||||
|
||||
@@ -36,14 +36,6 @@
|
||||
<label class="choose-subscribers-label">
|
||||
<h4 class="stream_setting_subsection_title">{{t "Choose subscribers" }}</h4>
|
||||
</label>
|
||||
<span class="add_all_users_to_stream_button_container">
|
||||
{{> ../components/action_button
|
||||
label=(t "Add all users")
|
||||
custom_classes="add_all_users_to_stream inline-block"
|
||||
attention="quiet"
|
||||
intent="brand"
|
||||
}}
|
||||
</span>
|
||||
<div id="stream_subscription_error" class="stream_creation_error"></div>
|
||||
<div class="controls" id="people_to_add"></div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user