cozy / cozy-emails

Email Client for Cozy
GNU Affero General Public License v3.0
66 stars 41 forks source link

Creation wizard: fix reset #888

Closed m4dz closed 7 years ago

m4dz commented 8 years ago

When adding a new account, the Account Creation Wizard component state isn't properly resetted. This PR forces to rely of CLOSE_MODAL event for resetting and improve the way the modal can be closed.

Now, a modal is systematically closed with the CLOSE_MODAL event, regardless where the event comes (cancel click, success click, setTimeout…). This event is used in the RouterStore to update the URL properly.

frankrousseau commented 7 years ago

@m4dz After the recent merges, this PR is red and cannot be merged. @m4dz could you fix it?

m4dz commented 7 years ago

This is on my list for today

frankrousseau commented 7 years ago

Great thank you @m4dz

misstick commented 7 years ago

@m4dz : except typo, it's OK for me: can you clean this so that I can merge it plz?