Use Cancel instead of Delete
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
<section class="settings__section settings__section--negative">
|
||||
<header>
|
||||
<h2 class="divider">Danger zone</h2>
|
||||
<div>Permanently delete this account and all its data, including users, boards, and cards.</div>
|
||||
<div>Cancel your account and delete everything in it, including all boards and cards.</div>
|
||||
</header>
|
||||
|
||||
<div data-controller="dialog toggle-enable" data-dialog-modal-value="true">
|
||||
<button type="button" class="btn btn--negative" data-action="dialog#open">Delete account...</button>
|
||||
<button type="button" class="btn btn--negative" data-action="dialog#open">Cancel account...</button>
|
||||
|
||||
<dialog class="dialog panel panel--wide shadow" data-dialog-target="dialog" data-action="close->toggle-enable#reset" style="--panel-size: 48ch;">
|
||||
<h2 class="margin-none txt-large txt-negative">Delete account</h2>
|
||||
<h2 class="margin-none txt-large txt-negative">Cancel account</h2>
|
||||
<div class="txt-align-start">
|
||||
<h3 class="margin-block-start margin-block-end-half txt-normal">What happens next:</h3>
|
||||
<ul class="list-unindented margin-block-start-half margin-block-end">
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<h3 class="margin-block-end-half txt-normal">Remember to export your data</h3>
|
||||
<p class="margin-block-start-half margin-block-end">
|
||||
<button type="button" class="btn btn--plain txt-link" data-controller="dispatch-event" data-dispatch-event-name-value="open-export" data-action="click->dialog#close click->dispatch-event#dispatch">Export your data</button> before you go. You won’t be able to do it after you delete your account.
|
||||
<button type="button" class="btn btn--plain txt-link" data-controller="dispatch-event" data-dispatch-event-name-value="open-export" data-action="click->dialog#close click->dispatch-event#dispatch">Export your data</button> before you go. You won’t be able to do it after you cancel your account.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<div class="flex gap justify-center">
|
||||
<button type="button" class="btn" autofocus data-action="dialog#close">Not now</button>
|
||||
<%= button_to "Delete my account", account_cancellation_path,
|
||||
<%= button_to "Cancel my account", account_cancellation_path,
|
||||
method: :post,
|
||||
class: "btn btn--negative",
|
||||
disabled: true,
|
||||
|
||||
Reference in New Issue
Block a user