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:
seb
2026-08-07 06:24:21 +02:00
parent 83ac0efd00
commit 354f7e7466
5 changed files with 8 additions and 41 deletions

View File

@@ -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;
}