Co-authored-by: Himanshi Gupta <higupta@higupta.remote.csb>
This commit is contained in:
parent
448e8ef9a3
commit
b8eb051adb
1 changed files with 7 additions and 1 deletions
|
@ -52,6 +52,8 @@ const GroupTreeContextMenu = ({
|
||||||
const [createOpen, toggleCreateOpen] = useToggle();
|
const [createOpen, toggleCreateOpen] = useToggle();
|
||||||
const [moveOpen, toggleMoveOpen] = useToggle();
|
const [moveOpen, toggleMoveOpen] = useToggle();
|
||||||
const [deleteOpen, toggleDeleteOpen] = useToggle();
|
const [deleteOpen, toggleDeleteOpen] = useToggle();
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const { realm } = useRealm();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -60,6 +62,7 @@ const GroupTreeContextMenu = ({
|
||||||
id={group.id}
|
id={group.id}
|
||||||
rename={group}
|
rename={group}
|
||||||
refresh={() => {
|
refresh={() => {
|
||||||
|
navigate(toGroups({ realm }));
|
||||||
refresh();
|
refresh();
|
||||||
}}
|
}}
|
||||||
handleModalToggle={toggleRenameOpen}
|
handleModalToggle={toggleRenameOpen}
|
||||||
|
@ -79,7 +82,10 @@ const GroupTreeContextMenu = ({
|
||||||
show={deleteOpen}
|
show={deleteOpen}
|
||||||
toggleDialog={toggleDeleteOpen}
|
toggleDialog={toggleDeleteOpen}
|
||||||
selectedRows={[group]}
|
selectedRows={[group]}
|
||||||
refresh={refresh}
|
refresh={() => {
|
||||||
|
navigate(toGroups({ realm }));
|
||||||
|
refresh();
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
toggle={<KebabToggle onToggle={toggleOpen} />}
|
toggle={<KebabToggle onToggle={toggleOpen} />}
|
||||||
|
|
Loading…
Reference in a new issue