Remove Auftrag Ausliefern/Retoure stubs and sort Kundengruppen by sort field.
Placeholder sub-pages are dropped from routing and nav until delivery/return flows exist; the new-customer group dropdown now matches the API sort order.
This commit is contained in:
@@ -12,8 +12,6 @@ import AddBoxIcon from '@mui/icons-material/AddBox';
|
||||
import StorefrontIcon from '@mui/icons-material/Storefront';
|
||||
import RequestQuoteIcon from '@mui/icons-material/RequestQuote';
|
||||
import ShoppingCartIcon from '@mui/icons-material/ShoppingCart';
|
||||
import OutboxIcon from '@mui/icons-material/Outbox';
|
||||
import AssignmentReturnIcon from '@mui/icons-material/AssignmentReturn';
|
||||
import { isKategorienPath } from './pages/artikel/categoryRoute';
|
||||
|
||||
export const NAV_ITEMS = [
|
||||
@@ -38,8 +36,6 @@ export const SUB_NAV = {
|
||||
'/auftrag': [
|
||||
{ segment: '', label: 'Angebot', icon: RequestQuoteIcon },
|
||||
{ segment: 'bestellung', label: 'Bestellung', icon: ShoppingCartIcon },
|
||||
{ segment: 'ausliefern', label: 'Ausliefern', icon: OutboxIcon },
|
||||
{ segment: 'retoure', label: 'Retoure', icon: AssignmentReturnIcon },
|
||||
],
|
||||
'/kunde': [
|
||||
{ segment: '', label: 'Kundenliste', icon: PeopleIcon },
|
||||
@@ -93,8 +89,7 @@ export function resolveActiveSub(pathname, sectionPath) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Keep Bestellung/Ausliefern/Retoure active for nested paths
|
||||
// (e.g. /auftrag/bestellung/neu).
|
||||
// Keep Bestellung active for nested paths (e.g. /auftrag/bestellung/neu).
|
||||
if (sectionPath === '/auftrag' && rest && knownSegments.has(rest)) {
|
||||
return rest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user