mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
user_group: Fix broken edit description functionality.
This commit fixes the currently broken feature of being able to change the group info using the edit icon that triggers the dialog_widget to let users edit their group description. Fixes #32767.
This commit is contained in:
committed by
Tim Abbott
parent
44f5f4e129
commit
ddd58b1a14
@@ -1311,8 +1311,9 @@ export function initialize(): void {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function save_group_info(this: HTMLElement): void {
|
function save_group_info(e: JQuery.ClickEvent): void {
|
||||||
const group = get_user_group_for_target(this);
|
assert(e.currentTarget instanceof HTMLElement);
|
||||||
|
const group = get_user_group_for_target(e.currentTarget);
|
||||||
assert(group !== undefined);
|
assert(group !== undefined);
|
||||||
const url = `/json/user_groups/${group.id}`;
|
const url = `/json/user_groups/${group.id}`;
|
||||||
let name;
|
let name;
|
||||||
|
|||||||
Reference in New Issue
Block a user