diff options
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/simplest.ts')
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/simplest.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/simplest.ts b/packages/aml-backoffice-ui/src/forms/simplest.ts index 7eda03fef..023c1765f 100644 --- a/packages/aml-backoffice-ui/src/forms/simplest.ts +++ b/packages/aml-backoffice-ui/src/forms/simplest.ts @@ -5,11 +5,11 @@ import { TranslatedString, } from "@gnu-taler/taler-util"; import { FormState } from "../handlers/FormProvider.js"; -import { FlexibleForm } from "./index.js"; -import { AmlState } from "../types.js"; -import { amlStateConverter } from "../pages/CaseDetails.js"; +import { DoubleColumnFormSection } from "../handlers/forms.js"; import { State } from "../pages/AntiMoneyLaunderingForm.js"; -import { DoubleColumnFormSection, UIFormField } from "../handlers/forms.js"; +import { amlStateConverter } from "../pages/CaseDetails.js"; +import { AmlExchangeBackend } from "../types.js"; +import { FlexibleForm } from "./index.js"; export const v1 = (current: State): FlexibleForm<Simplest.Form> => ({ versionId: "2023-05-25", @@ -36,7 +36,7 @@ export const v1 = (current: State): FlexibleForm<Simplest.Form> => ({ disabled: true, }, threshold: { - disabled: v.state === AmlState.frozen, + disabled: v.state === AmlExchangeBackend.AmlState.frozen, }, }; }, @@ -46,7 +46,7 @@ export namespace Simplest { export interface WithResolution { when: AbsoluteTime; threshold: AmountJson; - state: AmlState; + state: AmlExchangeBackend.AmlState; } export interface Form extends WithResolution { comment: string; @@ -77,15 +77,15 @@ export function resolutionSection(current: State): DoubleColumnFormSection { converter: amlStateConverter, choices: [ { - value: AmlState.frozen, + value: AmlExchangeBackend.AmlState.frozen, label: "Frozen" as TranslatedString, }, { - value: AmlState.pending, + value: AmlExchangeBackend.AmlState.pending, label: "Pending" as TranslatedString, }, { - value: AmlState.normal, + value: AmlExchangeBackend.AmlState.normal, label: "Normal" as TranslatedString, }, ], |