DescriptionSettings: Fix Site Details subpage routing
Goal is: A site details subpage that's accessible both from /siteSettings/all, /siteSettings/bluetooth, /siteSettings/plugins, etc. (all the categories).
Previous way it was done was: Separate route for each category, so there was /siteSettings/all/details, /siteSettings/bluetooth/details, /siteSettings/plugins/details.
And it relied on a quirk of how settings-animated-pages used to work to coalesce all those routes to a single card.
New way I'm proposing: One single /siteSettings/siteDetails route.
But here are some extra needed changes:
- settings-animated-pages must slide right / left based on route depth instead of based on .contains()
- subpage-back button needs to call window.history.back() whenever there is a previous route, even if the previous route doesn't strictly contain the current route.
I think the above two changes are harmless and the new version is overall an improvement.
BUG=637865
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/1e19d86e3aaafb89470cbc5b5d8b74695b49f2d6
Cr-Commit-Position: refs/heads/master@{#412605}
Patch Set 1 #Patch Set 2 : update routing and subpage-back to support site details #Patch Set 3 : merge origin/master #Patch Set 4 : fix test #
Total comments: 4
Patch Set 5 : fix comment typo #Messages
Total messages: 36 (24 generated)
|