Implement editing of transactions #23

Merged
jacob1123 merged 22 commits from edit-transaction into master 2022-02-25 23:35:12 +01:00
Showing only changes of commit 4ed15b740b - Show all commits

View File

@ -1,5 +1,5 @@
<script lang="ts" setup> <script lang="ts" setup>
import { defineComponent, PropType, ref, watch } from "vue" import { ref, watch } from "vue"
import { GET } from "../api"; import { GET } from "../api";
import { useBudgetsStore } from "../stores/budget"; import { useBudgetsStore } from "../stores/budget";
@ -20,9 +20,6 @@ const emit = defineEmits(["update:id", "update:text"]);
watch(SearchQuery, () => { watch(SearchQuery, () => {
load(SearchQuery.value); load(SearchQuery.value);
}); });
function saveTransaction(e: MouseEvent) {
e.preventDefault();
};
function load(text: String) { function load(text: String) {
emit('update:id', null); emit('update:id', null);
emit('update:text', text); emit('update:text', text);