Convert other pages to composition API
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
import { computed, ref } from "vue"
|
||||
import Autocomplete, { Suggestion } from '../components/Autocomplete.vue'
|
||||
import Currency from "../components/Currency.vue";
|
||||
import TransactionRow from "../components/TransactionRow.vue";
|
||||
@ -22,10 +22,10 @@ function saveTransaction(e: MouseEvent) {
|
||||
POST("/transaction/new", JSON.stringify({
|
||||
budget_id: props.budgetid,
|
||||
account_id: props.accountid,
|
||||
date: TransactionDate,
|
||||
payee: Payee,
|
||||
category: Category,
|
||||
memo: Memo,
|
||||
date: TransactionDate.value,
|
||||
payee: Payee.value,
|
||||
category: Category.value,
|
||||
memo: Memo.value,
|
||||
amount: Amount,
|
||||
state: "Uncleared"
|
||||
}))
|
||||
|
Reference in New Issue
Block a user