diff --git a/web/src/routes/scheduled-transactions/+page.svelte b/web/src/routes/scheduled-transactions/+page.svelte index 2eacd2c..78fd1f2 100644 --- a/web/src/routes/scheduled-transactions/+page.svelte +++ b/web/src/routes/scheduled-transactions/+page.svelte @@ -39,7 +39,7 @@ amount: 200 }, { - checked: true, + checked: false, id: 3, name: 'Yet another transaction', description: 'Yet another description, but longer than the others', diff --git a/web/src/routes/transaction-history/+page.svelte b/web/src/routes/transaction-history/+page.svelte index 438863d..61f1e93 100644 --- a/web/src/routes/transaction-history/+page.svelte +++ b/web/src/routes/transaction-history/+page.svelte @@ -1,6 +1,70 @@ + + Transaction history | Expenses + + (row?.checked ? ['highlight'] : [])}> + {#snippet header({ key, label })} + {#if key === 'checked'} + data.forEach((row) => (row.checked = e.currentTarget.checked))} + checked={data.every((row) => row.checked)} + /> + {:else} + {label} + {/if} + {/snippet} + {#snippet cell({ key, value, row })} + {#if key === 'checked'} + + {:else} + {value} + {/if} + {/snippet} +