mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-04 07:47:10 +00:00
fix: refresh group member count when Edit Group modal closes
This commit is contained in:
parent
2d18727ab8
commit
eae6063b21
1 changed files with 8 additions and 0 deletions
|
|
@ -22,8 +22,16 @@
|
|||
export let setGroups = () => {};
|
||||
|
||||
let showEdit = false;
|
||||
let wasEditOpen = false;
|
||||
$: hasCustomPermissions = Object.keys(group?.permissions ?? {}).length > 0;
|
||||
|
||||
$: {
|
||||
if (wasEditOpen && !showEdit) {
|
||||
setGroups();
|
||||
}
|
||||
wasEditOpen = showEdit;
|
||||
}
|
||||
|
||||
const updateHandler = async (_group) => {
|
||||
const res = await updateGroupById(localStorage.token, group.id, _group).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue