Bring submit button to work
This commit is contained in:
@ -47,8 +47,14 @@ const payload = computed(() => JSON.stringify({
|
||||
const transactionsStore = useTransactionsStore();
|
||||
function saveTransaction(e: MouseEvent) {
|
||||
e.preventDefault();
|
||||
Save();
|
||||
}
|
||||
|
||||
function Save() {
|
||||
transactionsStore.saveTransaction(payload.value);
|
||||
}
|
||||
|
||||
defineExpose({Save});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user