mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 07:21:23 +00:00
user_groups: Add can_add_members_group field to group create/edit.
This commit is contained in:
committed by
Tim Abbott
parent
f134662312
commit
8a2a8b64aa
@@ -917,6 +917,7 @@ export function check_group_property_changed(elem: HTMLElement, group: UserGroup
|
||||
const current_val = get_group_property_value(property_name, group);
|
||||
let proposed_val;
|
||||
switch (property_name) {
|
||||
case "can_add_members_group":
|
||||
case "can_join_group":
|
||||
case "can_manage_group": {
|
||||
const pill_widget = get_group_setting_widget(property_name);
|
||||
@@ -1404,6 +1405,7 @@ export function initialize_disable_btn_hint_popover(
|
||||
}
|
||||
|
||||
export const group_setting_widget_map = new Map<string, GroupSettingPillContainer | null>([
|
||||
["can_add_members_group", null],
|
||||
["can_join_group", null],
|
||||
["can_manage_group", null],
|
||||
]);
|
||||
@@ -1446,7 +1448,7 @@ export function set_group_setting_widget_value(
|
||||
}
|
||||
}
|
||||
|
||||
type group_setting_name = "can_manage_group" | "can_join_group";
|
||||
type group_setting_name = "can_manage_group" | "can_join_group" | "can_add_members_group";
|
||||
|
||||
export function create_group_setting_widget({
|
||||
$pill_container,
|
||||
|
||||
Reference in New Issue
Block a user