This commit is contained in:
seb
2026-10-15 10:38:56 +02:00
parent 40bf70a41c
commit 7114258a96
2 changed files with 14 additions and 2 deletions

View File

@@ -580,6 +580,12 @@ export const quoteEditAutomat = createManifestEditAutomat({
name: 'quote-edit',
});
/** Shared singleton automat for the single last edited order. */
export const orderEditAutomat = createManifestEditAutomat({
kind: 'order',
name: 'order-edit',
});
/**
* Returns the edit automat for a given manifest kind.
* @param {'quote'|'order'} kind
@@ -587,5 +593,6 @@ export const quoteEditAutomat = createManifestEditAutomat({
*/
export function getManifestEditAutomat(kind) {
if (kind === 'quote') return quoteEditAutomat;
if (kind === 'order') return orderEditAutomat;
return null;
}