From 5e3c729605740170e02972b854fe75262eab3f9c Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 23 Apr 2022 11:26:58 +0000 Subject: [PATCH] ESLINT 3 --- web/src/components/TransactionEditRow.vue | 71 +++++++--------------- web/src/components/TransactionInputRow.vue | 4 +- web/src/components/TransactionRow.vue | 2 +- web/src/pages/Account.vue | 3 +- web/src/pages/AllAccounts.vue | 17 ------ web/src/stores/transactions.ts | 1 + 6 files changed, 29 insertions(+), 69 deletions(-) diff --git a/web/src/components/TransactionEditRow.vue b/web/src/components/TransactionEditRow.vue index fbc7c92..6a517a6 100644 --- a/web/src/components/TransactionEditRow.vue +++ b/web/src/components/TransactionEditRow.vue @@ -8,8 +8,8 @@ import Input from "./Input.vue"; import Button from "./SimpleButton.vue"; const props = defineProps<{ - transactionid: string - withAccount: bool + transactionid: string, + withAccount: boolean, }>() const emit = defineEmits(["save"]); @@ -19,74 +19,47 @@ const TX = transactionsStore.Transactions.get(props.transactionid)!; const payeeType = ref(undefined); const payload = computed(() => JSON.stringify({ - date: TX.Date.toISOString().split("T")[0], - payee: { - Name: TX.Payee, - ID: TX.PayeeID, - Type: payeeType.value, - }, - categoryId: TX.CategoryID, - memo: TX.Memo, - amount: TX.Amount.toString(), - state: "Uncleared" + date: TX.Date.toISOString().split("T")[0], + payee: { + Name: TX.Payee, + ID: TX.PayeeID, + Type: payeeType.value, + }, + categoryId: TX.CategoryID, + memo: TX.Memo, + amount: TX.Amount.toString(), + state: "Uncleared" })); function saveTransaction(e: MouseEvent) { - e.preventDefault(); - transactionsStore.editTransaction(TX.ID, payload.value); - emit('save'); + e.preventDefault(); + transactionsStore.editTransaction(TX.ID, payload.value); + emit('save'); } diff --git a/web/src/pages/AllAccounts.vue b/web/src/pages/AllAccounts.vue index 435db28..2b35684 100644 --- a/web/src/pages/AllAccounts.vue +++ b/web/src/pages/AllAccounts.vue @@ -56,23 +56,6 @@ onMounted(() => { :index="index" /> -
- - - - -