feat: refresh current data on activities processed

This commit is contained in:
Sophie-Gaëlle CALLOCH
2026-07-07 15:12:59 +02:00
parent a7407b8e06
commit 2622d9f01e
7 changed files with 32 additions and 17 deletions
+5 -7
View File
@@ -7,19 +7,17 @@ import {IskLabel} from "@/market";
import {SortableHeader, useSort, VirtualScrollTable} from "@/components/table";
import {TransferList, TransferTypes} from "@/transaction";
import {Dropdown} from "@/components";
import {SourceLabel} from "@/activity";
import {SourceLabel, useProcessedResource} from "@/activity";
import {useCharactersStore} from "@/characters";
import {formatEveDate} from "@/formaters.ts";
const {ledgerId} = useLedgerParam();
const charactersStore = useCharactersStore();
const transactions = computedAsync<TransactionResponse[]>(async () => {
if (ledgerId.value) {
return await findAllTransactionInLeger(ledgerId.value);
}
return [];
}, []);
const transactions = useProcessedResource<TransactionResponse[]>(
() => ledgerId.value ? findAllTransactionInLeger(ledgerId.value) : Promise.resolve([]),
[],
);
const { sortedArray, headerProps } = useSort(computedAsync(() => Promise.all(transactions.value.map(async transaction => {
const source = transaction.source;