aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/forms/simplest.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/simplest.ts')
-rw-r--r--packages/aml-backoffice-ui/src/forms/simplest.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/simplest.ts b/packages/aml-backoffice-ui/src/forms/simplest.ts
index bd512546d..6455b6f41 100644
--- a/packages/aml-backoffice-ui/src/forms/simplest.ts
+++ b/packages/aml-backoffice-ui/src/forms/simplest.ts
@@ -13,13 +13,13 @@
You should have received a copy of the GNU General Public License along with
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import type {
- TranslatedString
+import {
+ TalerExchangeApi,
+ type TranslatedString
} from "@gnu-taler/taler-util";
import type { DoubleColumnFormSection, FlexibleForm, FormState, InternationalizationAPI } from "@gnu-taler/web-util/browser";
import { amlStateConverter } from "../utils/converter.js";
-import { AmlExchangeBackend } from "../utils/types.js";
import { BaseForm } from "./declaration.js";
export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): FlexibleForm<Simplest.Form> => ({
@@ -44,10 +44,9 @@ export const v1 = (i18n: InternationalizationAPI) => (current: BaseForm): Flexib
return {
comment: {
help: ((v.comment?.length ?? 0) > 100 ? "keep it short" : "") as TranslatedString,
-
},
threshold: {
- disabled: v.state === AmlExchangeBackend.AmlState.frozen,
+ disabled: v.state === TalerExchangeApi.AmlState.frozen,
},
};
},
@@ -71,18 +70,17 @@ export function resolutionSection(current: BaseForm, i18n: InternationalizationA
props: {
name: "state",
label: i18n.str`New state`,
- converter: amlStateConverter,
choices: [
{
- value: AmlExchangeBackend.AmlState.frozen,
+ value: TalerExchangeApi.AmlState.frozen,
label: i18n.str`Frozen`,
},
{
- value: AmlExchangeBackend.AmlState.pending,
+ value: TalerExchangeApi.AmlState.pending,
label: i18n.str`Pending`,
},
{
- value: AmlExchangeBackend.AmlState.normal,
+ value: TalerExchangeApi.AmlState.normal,
label: i18n.str`Normal`,
},
],