0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Updated cancel button behavior for account pages

no issue

- By default, Cancel button on Account plan/profile pages goes back to last open page like accountHome
- In case the page is opened directly via custom trigger button, there is no last open page so the popup didn't close
- Closes popup for back actions in case no last page is found
This commit is contained in:
Rish 2020-08-26 00:50:55 +05:30
parent c721eda332
commit e50576b420

View file

@ -23,6 +23,8 @@ function back({state}) {
return {
page: state.lastPage
};
} else {
closePopup({state});
}
}