fix tx isdone checkbox text size
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user