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:
parent
c721eda332
commit
e50576b420
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ function back({state}) {
|
|||
return {
|
||||
page: state.lastPage
|
||||
};
|
||||
} else {
|
||||
closePopup({state});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue