Add shared Manifest UI for delivery, quote, and order.
Wire quote/order API clients and routes, then unify list/create/edit behind ManifestList/Form tiles so Lieferungen and Auftrag share one stack.
This commit is contained in:
13
src/nav.js
13
src/nav.js
@@ -86,7 +86,18 @@ export function resolveActiveSub(pathname, sectionPath) {
|
||||
sectionPath === '/kunde' && rest && !knownSegments.has(rest);
|
||||
const isLieferungDetail =
|
||||
sectionPath === '/lieferung' && rest && !knownSegments.has(rest);
|
||||
if (isArticleDetail || isKundeDetail || isLieferungDetail) return null;
|
||||
// Angebot neu/edit: /auftrag/neu or /auftrag/:quoteId (not a known sub)
|
||||
const isAngebotDoc =
|
||||
sectionPath === '/auftrag' && rest && !knownSegments.has(rest);
|
||||
if (isArticleDetail || isKundeDetail || isLieferungDetail || isAngebotDoc) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Keep Bestellung/Ausliefern/Retoure active for nested paths
|
||||
// (e.g. /auftrag/bestellung/neu).
|
||||
if (sectionPath === '/auftrag' && rest && knownSegments.has(rest)) {
|
||||
return rest;
|
||||
}
|
||||
|
||||
const active = subNav.find((item) => {
|
||||
if (item.segment === 'kategorien') {
|
||||
|
||||
Reference in New Issue
Block a user