From 2630de425d2bd41fd0e3ea74c9d7e09ba9981c03 Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Sat, 2 Oct 2021 16:41:21 +0200 Subject: [PATCH] update GDT to use enums and switch-case --- backend/src/graphql/resolvers/GdtResolver.ts | 2 +- frontend/src/components/Transaction.vue | 73 ++++++++------- .../src/components/TransactionCollapse.vue | 91 ++++++++++--------- frontend/src/graphql/enums.js | 9 ++ frontend/src/graphql/mutations.js | 12 +-- frontend/src/graphql/queries.js | 14 +-- frontend/src/store/store.test.js | 12 +-- 7 files changed, 116 insertions(+), 97 deletions(-) create mode 100644 frontend/src/graphql/enums.js diff --git a/backend/src/graphql/resolvers/GdtResolver.ts b/backend/src/graphql/resolvers/GdtResolver.ts index 0552c1510..7846b94d6 100644 --- a/backend/src/graphql/resolvers/GdtResolver.ts +++ b/backend/src/graphql/resolvers/GdtResolver.ts @@ -30,7 +30,7 @@ export class GdtResolver { if (!resultGDT.success) { throw new Error(resultGDT.data) } - + console.log(resultGDT.data) return new GdtEntryList(resultGDT.data) } } diff --git a/frontend/src/components/Transaction.vue b/frontend/src/components/Transaction.vue index 4071e809d..cc027306b 100644 --- a/frontend/src/components/Transaction.vue +++ b/frontend/src/components/Transaction.vue @@ -38,7 +38,7 @@ - + {{ $t('form.memo') }} @@ -72,6 +72,7 @@