impress/app/views
Emi Matchu 95c1a4f391 Fix bugs in Settings page when changes to the model are incomplete
Ahh okay tricky lil thing: if you show the settings page with a partial
change to `AuthUser` that didn't get saved, it can throw off the state
of some stuff. For example, if you don't have a password yet, then
enter a new password but leave the confirmation box blank, then you'll
correctly see "Password confirmation can't be blank", but you'll *also*
then be prompted for your "Current password", even though you don't
have one yet, because `@auth_user.uses_password?` is true now.

In this change, we extend the Settings form to use two copies of the
`AuthUser`. One is the copy with changes on it, and the other is the
"persisted" copy, which we check for parts of the UI that care about
what's actually saved, vs form state.
2024-04-09 06:34:06 -07:00
..
about Add more NeoPass details to about page 2024-03-13 17:55:23 -07:00
alt_styles Update site copy to reflect that Alt Styles are released 2024-02-01 06:58:54 -08:00
application Move partials in views/static to views/application 2024-03-10 18:48:25 -07:00
auth_users Fix bugs in Settings page when changes to the model are incomplete 2024-04-09 06:34:06 -07:00
closet_hangers Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
closet_lists Fix incorrect closet list deletion prompt message 2024-03-13 13:59:27 -07:00
contributions i18n for contributions#index 2013-01-24 18:23:18 -06:00
devise Oh right, hide NeoPass on settings page unless you set the magic param! 2024-04-08 05:34:47 -07:00
fundraising Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
item_trades Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
layouts Eject AuthUsersController from the default Devise controller 2024-04-08 04:02:54 -07:00
neopets_page_import_tasks refactor importing 2015-07-27 13:25:24 -04:00
outfits Downgrade jQuery on homepage to be the same version as everywhere else 2024-03-13 21:38:45 -07:00
pets Fix various JS Turbo issues 2024-03-13 21:26:22 -07:00
sitemap Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
users i18n for contributions#index 2013-01-24 18:23:18 -06:00