From 6455c02d5edd2143c7e666dd194131fac90f58cc Mon Sep 17 00:00:00 2001 From: Annika Date: Mon, 11 Jul 2022 15:12:27 -0600 Subject: [PATCH] transactions are now printing to the page --- budgit.client/src/AppState.js | 3 +- budgit.client/src/components/Navbar.vue | 16 +++++----- budgit.client/src/components/Transaction.vue | 30 +++++++++++++----- budgit.client/src/pages/TransactionsPage.vue | 31 +++++++++++++++++-- budgit.client/src/router.js | 3 +- .../src/services/TransactionsService.js | 22 +++++++++++++ 6 files changed, 86 insertions(+), 19 deletions(-) create mode 100644 budgit.client/src/services/TransactionsService.js diff --git a/budgit.client/src/AppState.js b/budgit.client/src/AppState.js index 0b5a547..0f1dd3d 100644 --- a/budgit.client/src/AppState.js +++ b/budgit.client/src/AppState.js @@ -3,5 +3,6 @@ import { reactive } from 'vue' // NOTE AppState is a reactive object to contain app level data export const AppState = reactive({ user: {}, - account: {} + account: {}, + transactions: [] }) diff --git a/budgit.client/src/components/Navbar.vue b/budgit.client/src/components/Navbar.vue index e1778ab..5cd9aed 100644 --- a/budgit.client/src/components/Navbar.vue +++ b/budgit.client/src/components/Navbar.vue @@ -1,18 +1,20 @@