u
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user