1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Add ability to delete Maybe account (#698)

* Build out user deactivation and purging workflows

* Add i18n translations for user deletion

* Add tests for user deletion

* Fix lint issue
This commit is contained in:
Josh Brown 2024-04-30 16:40:31 +01:00 committed by GitHub
parent 55cb1ae5bd
commit 19ee773d9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 128 additions and 8 deletions

View file

@ -61,9 +61,16 @@
<h3 class="font-medium text-gray-900"><%= t(".delete_account") %></h3>
<p class="text-gray-500 text-sm"><%= t(".delete_account_warning") %></p>
</div>
<button disabled class="bg-red-500 text-white text-sm font-medium rounded-lg px-3 py-2 cursor-not-allowed">
<%= t(".delete_account") %>
</button>
<%=
button_to t(".delete_account"), settings_profile_path, method: :delete,
class: "bg-red-500 text-white text-sm font-medium rounded-lg px-3 py-2",
data: { turbo_confirm: {
title: t(".confirm_delete.title"),
body: t(".confirm_delete.body"),
accept: t(".delete_account"),
acceptClass: "w-full bg-red-500 text-white rounded-xl text-center p-[10px] border mb-2"
}}
%>
</div>
<% end %>
</div>