1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Add ability to delete Account (#582)

* Add ability to delete Account

Issue #571

* Fix ActiveJob::DeserializationError in AccountSyncJob when an account doesn't exists

* Use custom confirm modal for account deletion

* Revert "Fix ActiveJob::DeserializationError in AccountSyncJob when an account doesn't exists"

This reverts commit 8dbf634819.
This commit is contained in:
Mattia 2024-03-31 23:36:54 +02:00 committed by GitHub
parent 7fa77b4fd7
commit f6540c03ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 7 deletions

View file

@ -3,6 +3,8 @@ en:
accounts:
create:
success: New account created successfully
destroy:
success: Account deleted successfully
index:
new_account: New account
new:

View file

@ -1,6 +1,14 @@
---
en:
custom_turbo_confirm:
account_destroy:
accept: Delete "%{name}"
body_html: "<p>By deleting this account, you will erase its value history, affecting
various aspects of your overall account. This action will have a direct impact
on your net worth calculations and the account graphs.</p><br /> <p>After
deletion, there is no way you'll be able to restore the account information
because you'll need to add it as a new account.</p>"
title: Delete account?
default:
accept: Confirm
body_html: "<p>You will not be able to undo this decision</p>"