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:
@@ -48,11 +48,19 @@ export default function SectionLayout({ sectionPath }) {
|
||||
sectionPath === '/kunde' && rest && !knownSegments.has(rest);
|
||||
const isLieferungDetail =
|
||||
sectionPath === '/lieferung' && rest && !knownSegments.has(rest);
|
||||
const isDetail = isArticleDetail || isKundeDetail || isLieferungDetail;
|
||||
const isAngebotDoc =
|
||||
sectionPath === '/auftrag' && rest && !knownSegments.has(rest);
|
||||
const isDetail =
|
||||
isArticleDetail || isKundeDetail || isLieferungDetail || isAngebotDoc;
|
||||
|
||||
const pageTitle = isDetail
|
||||
const angebotLabel =
|
||||
subNav?.find((item) => item.segment === '')?.label ?? 'Angebot';
|
||||
let pageTitle = isDetail
|
||||
? title
|
||||
: (activeSub?.label ?? title);
|
||||
if (pathname === '/auftrag/neu') pageTitle = 'Neues Angebot';
|
||||
else if (isAngebotDoc) pageTitle = angebotLabel;
|
||||
else if (pathname === '/auftrag/bestellung/neu') pageTitle = 'Neue Bestellung';
|
||||
|
||||
const showsRenameSwitch = activeSub?.segment === 'kategorien';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user