impress/app/views/wardrobe
Emi Matchu 5e68d3809c [WV2] Fix syncing for play/pause state across page morphs
Reproduce:
1. Add an item with animations, and play them.
2. Remove the item.
3. Add it back.
4. Observe the button shows up in "Paused" state, even though it's playing.

This is because the server-side template wasn't doing anything to try to keep the play/pause button it renders in sync with the current saved state in the cookies, so it was always causing a morph to the pause state. Now we listen to the cookie instead!

I also updated the JS behavior to be a bit more consistent: treat the behavior as defaulting to true, unless it's explicitly set to the string "false".
2026-02-05 19:15:09 -08:00
..
_item_card.html.haml [WV2] Split template into partials 2025-12-26 23:19:39 -08:00
_pose_option.html.haml [WV2] Pose picker first draft 2025-11-11 17:41:57 -08:00
_pose_picker.html.haml [WV2] Minor UI improvements to pose picker 2026-02-05 18:35:10 -08:00
_pose_picker_form.html.haml [WV2] Simplify pose vs style picking 2026-02-05 18:11:01 -08:00
_search_results.html.haml [WV2] Split template into partials 2025-12-26 23:19:39 -08:00
_species_color_picker.html.haml [WV2] Split template into partials 2025-12-26 23:19:39 -08:00
_style_picker_form.html.haml [WV2] Simplify pose vs style picking 2026-02-05 18:11:01 -08:00
show.html.haml [WV2] Fix syncing for play/pause state across page morphs 2026-02-05 19:15:09 -08:00