Add groups support #146

Merged
pierre merged 17 commits from groups_support into master 2024-12-06 18:06:01 +00:00
Showing only changes of commit 0454fb515f - Show all commits

View File

@ -58,7 +58,8 @@ function AuthenticatedApp(): React.ReactElement {
const [rights, setRights] = React.useState<Rights | undefined>();
const load = async () => {
setRights(await ServerApi.GetRights());
const rights = await ServerApi.GetRights();
setRights(rights);
if (rights!.groups.length > 0) setTab("group");
else if (rights!.vms.length > 0) setTab("vm");