scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

Deep links when unauthenticated #81

Closed scottohara closed 9 years ago

scottohara commented 9 years ago

Navigating directly to a state (eg. /schedules) when unauthenticated correctly presents the login modal, but after logging in the originally requested state doesn't render

scottohara commented 9 years ago

Add Remember Me option that uses localStorage

scottohara commented 9 years ago

The difference between deep links to the /accounts state (which works) vs the /schedules state (which doesn't) is that the root.accounts state has no resolves (the accounts list is fetched in the controller), whereas the root.schedules state tries to resolve the list of schedules first.

We need to somehow halt the processing of child state resolves until the root state is fully resolved (ie. the login modal has returned.

Possibly by attaching a then() to the modal.open().result?