]> cat aescling's git repositories - mastodon.git/commit
Fix and simplify browser history handling in relation to modals
authorClaire <claire.github-309c@sitedethib.com>
Mon, 12 Jul 2021 15:55:40 +0000 (17:55 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 12 Jul 2021 18:13:02 +0000 (20:13 +0200)
commit6e3d5cbca26995e99d6ca8b1e3191edc539d87eb
treede8d16f8084deffcda17c8a926a7ed07ef06be04
parentc5b4e6b7084e8257979adec87f97d4800b7bec57
Fix and simplify browser history handling in relation to modals

This simplifies the logic to:
- when the last modal gets closed and we're in our history buffer state, go back
- whenever a modal is open, ensure we're in a history buffer state by
  potentially pushing one
app/javascript/flavours/glitch/components/modal_root.js
app/javascript/flavours/glitch/features/ui/components/modal_root.js