diff --git a/app/assets/stylesheets/utilities.css b/app/assets/stylesheets/utilities.css index 53837034c..40e29011a 100644 --- a/app/assets/stylesheets/utilities.css +++ b/app/assets/stylesheets/utilities.css @@ -222,6 +222,10 @@ padding: 0; } + :where(.list-unindented) { + padding-inline-start: 1.25em; + } + /* Accessibility */ .visually-hidden, .for-screen-reader { diff --git a/app/javascript/controllers/dispatch_event_controller.js b/app/javascript/controllers/dispatch_event_controller.js new file mode 100644 index 000000000..781b3c9ab --- /dev/null +++ b/app/javascript/controllers/dispatch_event_controller.js @@ -0,0 +1,9 @@ +import { Controller } from "@hotwired/stimulus" + +export default class extends Controller { + static values = { name: String } + + dispatch() { + document.dispatchEvent(new CustomEvent(this.nameValue, { bubbles: true })) + } +} diff --git a/app/views/account/settings/_cancellation.html.erb b/app/views/account/settings/_cancellation.html.erb index 9b80ed064..a457bd00b 100644 --- a/app/views/account/settings/_cancellation.html.erb +++ b/app/views/account/settings/_cancellation.html.erb @@ -9,18 +9,36 @@ -

Delete your account?

- +

Delete account

+
+

What happens next:

-
- - <%= button_to "Delete my account", account_cancellation_path, method: :post, class: "btn btn--negative", form: { data: { action: "submit->dialog#close", turbo: false } } %> +
    +
  • Your <%= Current.account.name %> account will be closed immediately.
  • +
  • All users, including you, will lose access.
  • + <% if Current.account.try(:active_subscription) %> +
  • Your subscription will be canceled.
  • + <% end %> +
  • All your data will be permanently deleted within 30 days.
  • +
+ +

Remember to export your data

+ +

+ before you go. You won’t be able to do it after you delete your account. +

+
+ +
+ + +
+ + <%= button_to "Delete my account", account_cancellation_path, method: :post, class: "btn btn--negative", disabled: true, form: { data: { action: "submit->dialog#close", turbo: false } }, data: { toggle_enable_target: "element" } %> +
diff --git a/app/views/account/settings/_export.html.erb b/app/views/account/settings/_export.html.erb index 3608e764f..932b6a490 100644 --- a/app/views/account/settings/_export.html.erb +++ b/app/views/account/settings/_export.html.erb @@ -4,7 +4,7 @@
Download a complete archive of all account data.
-
+