Right now, we have two modals to add transactions. It'd be nice to have a single source of functionality, this way we can update and re-use the code in multiple places.
How it Happened
I was prototyping some code and needed a quick way to over-ride settings. For example, if I add a transaction on the /transactions page, the modal allows you to select the account. If I add a transaction on an individual account page, the account is pre-selected. We should allow for an account to be pre-set and the modal re-used from anywhere.
Issue
Right now, we have two modals to add transactions. It'd be nice to have a single source of functionality, this way we can update and re-use the code in multiple places.
How it Happened
I was prototyping some code and needed a quick way to over-ride settings. For example, if I add a transaction on the
/transactions
page, the modal allows you to select the account. If I add a transaction on an individual account page, the account is pre-selected. We should allow for an account to be pre-set and the modal re-used from anywhere.How to Solve
Merge functionality from:
/resources/js/Components/Accounts/AddTransaction.vue
/resources/js/Components/Transactions/AddTransaction.vue
Into
/resources/js/Components/Transactions/AddTransaction.vue
Need to Account For
POST /api/v1/transactions
endpoint)