streams: Rename can_remove_subscribers_group_id parameter.

Earlier the API endpoints related to streams accepts and returns a
field `can_remove_subscribers_group_id` which represents the ID
of user_group whose members can remove subscribers from stream.

This commit renames this field to `can_remove_subscribers_group`.
This commit is contained in:
Ujjawal Modi
2023-07-12 16:27:57 +05:30
committed by Tim Abbott
parent 5ccb408f19
commit c8bcb422f5
22 changed files with 118 additions and 85 deletions

View File

@@ -210,13 +210,13 @@ export function show_settings_for(node) {
});
const opts = {
widget_name: "can_remove_subscribers_group_id",
widget_name: "can_remove_subscribers_group",
data: user_groups.get_realm_user_groups_for_dropdown_list_widget(
"can_remove_subscribers_group",
),
default_text: $t({defaultMessage: "No user groups"}),
include_current_item: false,
value: sub.can_remove_subscribers_group_id,
value: sub.can_remove_subscribers_group,
on_update() {
settings_org.save_discard_widget_status_handler(
$("#stream_permission_settings"),