Implement account editing and autocomplete

This commit is contained in:
jacob1123 authored and Gitea committed 2022-04-23 13:32:39 +02:00
1 parent 75a1839456
commit d22816dfd1
4 files changed
+32

No files matched your search

@@ -9,6 +9,7 @@ import Button from "./SimpleButton.vue";
const props = defineProps<{
transactionid: string
withAccount: bool
}>()
const emit = defineEmits(["save"]);
@@ -45,6 +46,13 @@ function saveTransaction(e: MouseEvent) {
class="border-b-2 border-black"
/>
</td>
<td v-if="withAccount">
<Autocomplete
v-model:text="TX.Account"
v-model:id="TX.AccountID"
model="accounts"
/>
</td>
<td>
<Autocomplete
v-model:text="TX.Payee"
+1
View File
@@ -75,6 +75,7 @@ function getStatusSymbol() {
<TransactionEditRow
v-if="edit"
:transactionid="TX.ID"
:withAccount="withAccount"
@save="edit = false"
/>
</template>