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" /> -
- - - - -