From b0c3bf4b03d2cf9c3a02e71e8aa9d9ae4eda9d2a Mon Sep 17 00:00:00 2001 From: xds Date: Thu, 20 Nov 2025 12:15:48 +0300 Subject: [PATCH] fix tx isdone checkbox text size --- src/components/transactions/TransactionCreateUpdate.vue | 8 ++++++-- src/stores/transactions-store.ts | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/transactions/TransactionCreateUpdate.vue b/src/components/transactions/TransactionCreateUpdate.vue index 086b437..2c2bc19 100644 --- a/src/components/transactions/TransactionCreateUpdate.vue +++ b/src/components/transactions/TransactionCreateUpdate.vue @@ -122,10 +122,13 @@ const fetchData = async () => { throw new Error("Could not find any space") } } catch (error) { + if (error.status === 404) { + await moveUser() + } toast.add({ severity: "error", summary: "Failed to load transaction data.", - detail: error, + detail: error.status, life: 3000 }) } @@ -198,7 +201,7 @@ const moveUser = async () => { router.back() } else { console.log('moved forward') - await router.push('/categories') + await router.push('/transactions') } } @@ -207,6 +210,7 @@ const deleteTransaction = async () => { await transactionService.deleteTransaction(spaceStore.selectedSpaceId, Number(transactionId.value)) await transactionStore.fetchTransactions(spaceStore.selectedSpaceId) if (openMode && openMode === "from_bot") { + console.log("test from bot") tgApp.close() } else await moveUser() } diff --git a/src/stores/transactions-store.ts b/src/stores/transactions-store.ts index ca64350..514b842 100644 --- a/src/stores/transactions-store.ts +++ b/src/stores/transactions-store.ts @@ -1,7 +1,7 @@ import {defineStore} from "pinia"; import {ref} from "vue"; import {Transaction} from "@/models/transaction"; -import {TransactionService} from "@/services/transactions-service"; +import {TransactionFilters, TransactionService} from "@/services/transactions-service"; const transactionsService = TransactionService @@ -12,7 +12,7 @@ export const useTransactionStore = defineStore('transactions', () => { const fetchTransactions = async (spaceId: number) => { isLoading.value = true try { - transactions.value = await transactionsService.getTransactions(spaceId) + transactions.value = await transactionsService.getTransactions(spaceId, {} as TransactionFilters) } finally { isLoading.value = false }