0
0
Fork 0

More link/button conversion across views (#32199)

This commit is contained in:
Matt Jankowski 2024-10-02 09:08:40 -04:00 committed by GitHub
parent 1f65a95421
commit cf859d151b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 17 additions and 17 deletions

View file

@ -2,7 +2,7 @@
= t('settings.two_factor_authentication')
- content_for :heading_actions do
= link_to t('two_factor_authentication.disable'), disable_settings_two_factor_authentication_methods_path, class: 'button button--destructive', method: :post
= button_to t('two_factor_authentication.disable'), disable_settings_two_factor_authentication_methods_path, class: 'button button--destructive'
%p.hint
%span.positive-hint
@ -38,4 +38,4 @@
%hr.spacer/
.simple_form
= link_to t('two_factor_authentication.generate_recovery_codes'), settings_two_factor_authentication_recovery_codes_path, data: { method: :post }, class: 'block-button'
= button_to t('two_factor_authentication.generate_recovery_codes'), settings_two_factor_authentication_recovery_codes_path, class: 'block-button'