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")
|
throw new Error("Could not find any space")
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (error.status === 404) {
|
||||||
|
await moveUser()
|
||||||
|
}
|
||||||
toast.add({
|
toast.add({
|
||||||
severity: "error",
|
severity: "error",
|
||||||
summary: "Failed to load transaction data.",
|
summary: "Failed to load transaction data.",
|
||||||
detail: error,
|
detail: error.status,
|
||||||
life: 3000
|
life: 3000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -198,7 +201,7 @@ const moveUser = async () => {
|
|||||||
router.back()
|
router.back()
|
||||||
} else {
|
} else {
|
||||||
console.log('moved forward')
|
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 transactionService.deleteTransaction(spaceStore.selectedSpaceId, Number(transactionId.value))
|
||||||
await transactionStore.fetchTransactions(spaceStore.selectedSpaceId)
|
await transactionStore.fetchTransactions(spaceStore.selectedSpaceId)
|
||||||
if (openMode && openMode === "from_bot") {
|
if (openMode && openMode === "from_bot") {
|
||||||
|
console.log("test from bot")
|
||||||
tgApp.close()
|
tgApp.close()
|
||||||
} else await moveUser()
|
} else await moveUser()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import {defineStore} from "pinia";
|
import {defineStore} from "pinia";
|
||||||
import {ref} from "vue";
|
import {ref} from "vue";
|
||||||
import {Transaction} from "@/models/transaction";
|
import {Transaction} from "@/models/transaction";
|
||||||
import {TransactionService} from "@/services/transactions-service";
|
import {TransactionFilters, TransactionService} from "@/services/transactions-service";
|
||||||
|
|
||||||
const transactionsService = TransactionService
|
const transactionsService = TransactionService
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ export const useTransactionStore = defineStore('transactions', () => {
|
|||||||
const fetchTransactions = async (spaceId: number) => {
|
const fetchTransactions = async (spaceId: number) => {
|
||||||
isLoading.value = true
|
isLoading.value = true
|
||||||
try {
|
try {
|
||||||
transactions.value = await transactionsService.getTransactions(spaceId)
|
transactions.value = await transactionsService.getTransactions(spaceId, {} as TransactionFilters)
|
||||||
} finally {
|
} finally {
|
||||||
isLoading.value = false
|
isLoading.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user