This commit is contained in:
2024-11-17 15:37:47 +01:00
parent d41c876258
commit 4719cd3e9a
3 changed files with 29 additions and 2 deletions
@@ -14,7 +14,7 @@ export default defineComponent({
default: null,
},
},
setup() {
setup(props) {
const transactionService = inject('transactionService', () => new TransactionService());
const alertService = inject('alertService', () => useAlertService(), true);
@@ -23,11 +23,13 @@ export default defineComponent({
const isFetching = ref(false);
const clear = () => {};
// console.log(props.userAccountId);
const retrieveTransactions = async () => {
isFetching.value = true;
try {
// console.log(props);
const res = await transactionService().retrieve();
// const res = await transactionService().retrieveForAccount(props.userAccountId);
transactions.value = res.data;
} catch (err) {
alertService.showHttpError(err.response);