Separate dashboard functions from grouped administration operations
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -33,6 +33,7 @@ export function AppSidebar() {
|
||||
profileAccess,
|
||||
scopedAdministration,
|
||||
dashboardNavigation,
|
||||
administrationNavigation,
|
||||
} = usePage<{
|
||||
auth: Auth;
|
||||
existingBusinessEnabled?: boolean;
|
||||
@@ -43,6 +44,7 @@ export function AppSidebar() {
|
||||
contentManagementHref?: string | null;
|
||||
scopedAdministration?: { label: string; href: string }[];
|
||||
dashboardNavigation?: { label: string; href: string }[];
|
||||
administrationNavigation?: { label: string; href: string }[];
|
||||
contentManagementAccess?: {
|
||||
opportunities?: { index: string; create?: string | null };
|
||||
};
|
||||
@@ -59,6 +61,7 @@ export function AppSidebar() {
|
||||
contentManagementAccess,
|
||||
scopedAdministration,
|
||||
dashboardNavigation,
|
||||
administrationNavigation,
|
||||
legacyContent: currentPage.props.legacyContentEnabled as
|
||||
| boolean
|
||||
| undefined,
|
||||
|
||||
@@ -54,6 +54,7 @@ export function PortalGroupedMenu() {
|
||||
opportunityManagement?: OpportunityManagementAccess | null;
|
||||
scopedAdministration?: { label: string; href: string }[];
|
||||
dashboardNavigation?: { label: string; href: string }[];
|
||||
administrationNavigation?: { label: string; href: string }[];
|
||||
contentManagementHref?: string | null;
|
||||
contentManagementAccess?: {
|
||||
opportunities?: { index: string; create?: string | null };
|
||||
@@ -81,6 +82,7 @@ export function PortalGroupedMenu() {
|
||||
contentManagementAccess: props.contentManagementAccess,
|
||||
scopedAdministration: props.scopedAdministration,
|
||||
dashboardNavigation: props.dashboardNavigation,
|
||||
administrationNavigation: props.administrationNavigation,
|
||||
});
|
||||
const current = currentNavigationGroup(groups, url);
|
||||
const currentItem = currentNavigationItem(groups, url);
|
||||
|
||||
@@ -22,8 +22,11 @@ export function PortalSidebarNavigation({
|
||||
}) {
|
||||
const active = currentNavigationItem(groups, url);
|
||||
const ordered = [
|
||||
...groups.filter((group) => group.id === 'administration'),
|
||||
...groups.filter((group) => group.id === 'work'),
|
||||
...groups.filter((group) => group.id !== 'work'),
|
||||
...groups.filter(
|
||||
(group) => group.id !== 'work' && group.id !== 'administration',
|
||||
),
|
||||
];
|
||||
const links = (items: PortalNavItem[], depth = 0): ReactNode =>
|
||||
items.map((item) =>
|
||||
|
||||
Reference in New Issue
Block a user