Skip to content

Commit

Permalink
Feedback: warning modal
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Jan 21, 2024
1 parent a559f51 commit 272a9c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,12 @@ const Transaction = memo(function Transaction(props) {

// Allow un-reconciling (unlocking) transactions
if (name === 'cleared' && transaction.reconciled) {
onUpdateAfterConfirm('reconciled', false);
props.pushModal('confirm-transaction-edit', {
onConfirm: () => {
onUpdateAfterConfirm('reconciled', false);
},
confirmReason: 'unlockReconciled',
});
}
}

Expand Down

0 comments on commit 272a9c5

Please sign in to comment.