fix checkboxes (#7742)

This commit is contained in:
youngcw
2026-05-08 07:37:24 -06:00
committed by GitHub
parent 1f4f706c4a
commit d2b50adf30
2 changed files with 19 additions and 12 deletions

View File

@@ -208,6 +208,19 @@ export function BankSyncCheckboxOptions({
<Trans>Reimport deleted transactions</Trans>
</CheckboxOptionWithHelp>
<CheckboxOptionWithHelp
id="form_update_dates"
checked={updateDates}
onChange={() => setUpdateDates(!updateDates)}
disabled={!importTransactions}
helpText={t(
'By enabling this, the transaction date will be overwritten by the one provided by the bank.',
)}
helpMode={helpMode}
>
<Trans>Update Dates</Trans>
</CheckboxOptionWithHelp>
<CheckboxOptionWithHelp
id="form_import_transactions"
checked={!importTransactions}
@@ -219,18 +232,6 @@ export function BankSyncCheckboxOptions({
>
<Trans>Investment Account</Trans>
</CheckboxOptionWithHelp>
<CheckboxOptionWithHelp
id="form_update_dates"
checked={updateDates}
onChange={() => setUpdateDates(!updateDates)}
helpText={t(
'By enabling this, the transaction date will be overwritten by the one provided by the bank.',
)}
helpMode={helpMode}
>
<Trans>Update Dates</Trans>
</CheckboxOptionWithHelp>
</>
);
}

View File

@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [youngcw]
---
Fix disabled settings of the bank sync options