Skip to content

chore: clean up groups page #16259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 29, 2025
Prev Previous commit
Next Next commit
fix sidebar highlighting
  • Loading branch information
aslilac committed Jan 29, 2025
commit ed8e84fa0da70e4006422f26c29010a9a0083a5f
4 changes: 3 additions & 1 deletion site/src/modules/management/OrganizationSidebarView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export const OrganizationSidebarView: FC<SidebarProps> = ({
};

function urlForSubpage(organizationName: string, subpage = ""): string {
return `/organizations/${organizationName}/${subpage}`;
return [`/organizations/${organizationName}`, subpage]
.filter(Boolean)
.join("/");
}

interface OrganizationsSettingsNavigationProps {
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/GroupsPage/GroupsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const GroupsPage: FC = () => {
<GroupsPageView
groups={groupsQuery.data}
canCreateGroup={permissions.createGroup}
isTemplateRBACEnabled={groupsEnabled}
groupsEnabled={groupsEnabled}
/>
</>
);
Expand Down
Loading