mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 02:54:09 -05:00
✨ allow un-reconciling (unlocking) transactions (#2252)
This commit is contained in:
committed by
GitHub
parent
bb0ae4ebc3
commit
a6e38ad2ae
@@ -42,6 +42,12 @@ export function ConfirmTransactionEdit({
|
||||
Saving your changes to this reconciled transaction may bring your
|
||||
reconciliation out of balance.
|
||||
</Block>
|
||||
) : confirmReason === 'unlockReconciled' ? (
|
||||
<Block>
|
||||
Unlocking this transaction means you won‘t be warned about changes
|
||||
that can impact your reconciled balance. (Changes to amount,
|
||||
account, payee, etc).
|
||||
</Block>
|
||||
) : confirmReason === 'deleteReconciled' ? (
|
||||
<Block>
|
||||
Deleting this reconciled transaction may bring your reconciliation
|
||||
|
||||
@@ -773,6 +773,16 @@ const Transaction = memo(function Transaction(props) {
|
||||
onUpdateAfterConfirm(name, value);
|
||||
}
|
||||
}
|
||||
|
||||
// Allow un-reconciling (unlocking) transactions
|
||||
if (name === 'cleared' && transaction.reconciled) {
|
||||
props.pushModal('confirm-transaction-edit', {
|
||||
onConfirm: () => {
|
||||
onUpdateAfterConfirm('reconciled', false);
|
||||
},
|
||||
confirmReason: 'unlockReconciled',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function onUpdateAfterConfirm(name, value) {
|
||||
|
||||
6
upcoming-release-notes/2252.md
Normal file
6
upcoming-release-notes/2252.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
Allow un-reconcile (unlock) transactions by clicking on the lock icon
|
||||
Reference in New Issue
Block a user