From 32439e3e870d2a9040e62ebeb7000edce5018a3c Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Fri, 25 Feb 2022 22:16:41 +0000 Subject: [PATCH] rename type to model --- web/src/components/Autocomplete.vue | 4 ++-- web/src/components/TransactionEditRow.vue | 7 ++++--- web/src/components/TransactionInputRow.vue | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/web/src/components/Autocomplete.vue b/web/src/components/Autocomplete.vue index 10c1db2..19a8055 100644 --- a/web/src/components/Autocomplete.vue +++ b/web/src/components/Autocomplete.vue @@ -11,7 +11,7 @@ export interface Suggestion { const props = defineProps<{ text: String, id: String | undefined, - type: String + model: String }>(); const SearchQuery = ref(props.text || ""); @@ -29,7 +29,7 @@ function load(text: String) { } const budgetStore = useBudgetsStore(); - GET("/budget/" + budgetStore.CurrentBudgetID + "/autocomplete/" + props.type + "?s=" + text) + GET("/budget/" + budgetStore.CurrentBudgetID + "/autocomplete/" + props.model + "?s=" + text) .then(x => x.json()) .then(x => { let suggestions = x || []; diff --git a/web/src/components/TransactionEditRow.vue b/web/src/components/TransactionEditRow.vue index c48e074..4465dcc 100644 --- a/web/src/components/TransactionEditRow.vue +++ b/web/src/components/TransactionEditRow.vue @@ -25,7 +25,8 @@ const payload = computed(() => JSON.stringify({ function saveTransaction(e: MouseEvent) { e.preventDefault(); - accountStore.saveTransaction(payload.value); + console.log(TX); + //accountStore.saveTransaction(payload.value); } @@ -35,10 +36,10 @@ function saveTransaction(e: MouseEvent) { - + - + diff --git a/web/src/components/TransactionInputRow.vue b/web/src/components/TransactionInputRow.vue index 36dd291..9db67a6 100644 --- a/web/src/components/TransactionInputRow.vue +++ b/web/src/components/TransactionInputRow.vue @@ -51,10 +51,10 @@ function saveTransaction(e: MouseEvent) { - + - +