From 6fd388b6567965f874e0b1dbfa98e2e5bebe2801 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Tue, 2 Dec 2025 16:36:34 -0500 Subject: [PATCH] Added buttons to add transaction via account page. --- web-app/src/pages/AccountPage.vue | 27 +++++++++++++++++++ .../src/pages/forms/EditTransactionPage.vue | 8 ++++++ 2 files changed, 35 insertions(+) diff --git a/web-app/src/pages/AccountPage.vue b/web-app/src/pages/AccountPage.vue index 69636c2..65c0b78 100644 --- a/web-app/src/pages/AccountPage.vue +++ b/web-app/src/pages/AccountPage.vue @@ -58,6 +58,17 @@ async function addValueRecord() { history.value?.reload() } } + +async function addCreditTransaction() { + await router.push( + `/profiles/${getSelectedProfile(route)}/add-transaction?credited-account=${account.value?.id}`, + ) +} +async function addDebitTransaction() { + await router.push( + `/profiles/${getSelectedProfile(route)}/add-transaction?debited-account=${account.value?.id}`, + ) +}